<?php

$first2 = $_POST['first2'];
$last2 = $_POST['last2'];
$text2 = $_POST['mytext2'];

    $first2 = str_replace('"', '\"', $first2); #replace double-quotes
    $first2 = str_replace("'", "\'", $first2); #replace single-quotes
    $first2 = str_replace(':', '\:', $first2); #replace colons
    $first2 = str_replace('-', '\-', $first2); #replace minus

    $last2 = str_replace('"', '\"', $last2);
    $last2 = str_replace("'", "\'", $last2);
    $last2 = str_replace(':', '\:', $last2);
    $last2 = str_replace('-', '\-', $last2);

    $text2 = str_replace('"', '\"', $text2);
    $text2 = str_replace("'", "\'", $text2);
    $text2 = str_replace(':', '\:', $text2);
    $text2 = str_replace('-', '\-', $text2);
    $text2 = str_replace( chr(13), '<br />', $text2); #change chr(13) to line break

echo "<br/><br />The raw php code you entered looks like this:<br /><br />" . $first2 . ", " . $last2 . "<br /><br />" . $text2;

echo '<br /><br /><a href="javascript:history.go(-1)">RETURN</a>';

?>