How to customise the php script so that the feedback is exactly the same as the user have typed out in a form? <p>Does anyone have any idea how to customize the php page so that the user can see a feedback of what he has already filled in? I noticed many php scripts have a 'thank you' feedback but I want more than that. The codes for the php as shown below :</p> <pre><code> &lt;?php if(isset($_POST['email'])) { // EDIT THE 2 LINES BELOW AS REQUIRED $email_to = "james@ace.com.sg"; $email_subject = "Photography Courses that I want to sign up"; function died($error) { // your error code can go here echo "We are very sorry, but there were error(s) found with the form you submitted. "; echo "These errors appear below.&lt;br /&gt;&lt;br /&gt;"; echo $error."&lt;br /&gt;&lt;br /&gt;"; echo "Please go back and fix these errors.&lt;br /&gt;&lt;br /&gt;"; die(); } // validation expected data exists if(!isset($_POST['name']) || !isset($_POST['email']) || !isset($_POST['tel']) || /*!isset($_POST['basic']) || !isset($_POST['advanced']) || !isset($_POST['raw']) || !isset($_POST['lightroom']) ||*/ !isset($_POST['comments'])) { died('We are sorry, but there appears to be a problem with the form you submitted.'); } $name = $_POST['name']; // required $email_from = $_POST['email']; // required $telephone = $_POST['tel']; // required $basic = $_POST['basic']; // not required $advanced = $_POST['advanced']; // not required $raw = $_POST['raw']; // not required $lightroom = $_POST['lightroom']; // not required $comments = $_POST['comments']; // not required $error_message = ""; $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; $string_exp = "/^[A-Za-z .'-]+$/"; if(!preg_match($string_exp,$name)) { $error_message .= 'The Name you entered does not appear to be valid.&lt;br /&gt;'; } if(!preg_match($email_exp,$email_from)) { $error_message .= 'The Email Address you entered does not appear to be valid.&lt;br /&gt;'; } /*if(!preg_match($string_exp,$telephone)) { $error_message .= 'You need to insert the telephone number.&lt;br /&gt;'; }*/ /* if(strlen($comments) &lt; 2) { $error_message .= 'Insufficient Words for comments! &lt;br /&gt;'; }*/ if(strlen($error_message) &gt; 0) { died($error_message); } $email_message = "Form details below.\n\n"; function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "\n Name: ".clean_string($name)."\n\n"; $email_message .= "Email: ".clean_string($email_from)."\n\n"; $email_message .= "Telephone: ".clean_string($telephone)."\n\n"; $email_message .= "Courses Taking: \n\n".clean_string($basic)."\n\n" .clean_string($advanced)."\n\n" .clean_string($raw)."\n\n" .clean_string($lightroom)."\n\n"; $email_message .= "Comments: ".clean_string($comments)."\n\n"; // create email headers $headers = 'From: '.$email_from."\r\n". 'Reply-To: '.$email_from."\r\n" . 'X-Mailer: PHP/' . phpversion(); @mail($email_to, $email_subject, $email_message, $headers); ?&gt; &lt;!-- include your own success html here --&gt; &lt;?php echo '&lt;h2&gt;Thanks for filling up this form, We will get back to you by next Monday (29 Sep). Have a terrific weekend!&lt;/h2&gt;'; echo '&lt;p&gt;**How do I feedback of what the user has already filled in the form here?** &lt;/p&gt;'; ?&gt; &lt;?php $redirect = 'http://www.acetraining.com.sg'; ?&gt; &lt;?php } ?&gt; &lt;SCRIPT LANGUAGE="JavaScript"&gt; redirTime = "4000"; redirURL = "&lt;?php echo $redirect ?&gt;"; function redirTimer() { self.setTimeout("self.location.href=redirURL;",redirTime);} &lt;/script&gt; &lt;BODY onLoad="redirTimer()"&gt; </code></pre> <p>Thanks!</p>