You have to use both, html for creating form and the php to post the form to your email. HTML FORM CODE IN THE BODY: <form action="send_mail.php" method="post"> <table> <tr> <td>Full Name:</td> <td> <input type="text" name="full_name" value="" maxlength="100" /> </td> </tr> <tr> <td>Contact Number:</td> <td> <input type="text" name="contact_number" value="" maxlength="100" /> </td> </tr> <tr> <td>Email Adress:</td> <td> <input type="text" name="email_address" value="" maxlength="100" /> </td> </tr> <tr> <td>Comments:</td> <td> <textarea rows="10" cols="50" name="comments"></textarea> </td> </tr> <tr><td> </td> <td> <input type="submit" value="Submit" /> </td> </tr> </table> </form> END OF THE HTML CODE PHP SCRIPT CODE: <?php $webmaster_email = "email@address.com"; $feedback_page = "index.html"; $error_page = "index_error.html"; $thankyou_page = "index_thanks.html"; $full_name = $_REQUEST['full_name'] ; $contact_number = $_REQUEST['contact_number'] ; $email_address = $_REQUEST['email_address'] ; $comments = $_REQUEST['comments'] ; function isInjected($str) { $injections = array('(\n+)', '(\r+)', '(\t+)', '(%0A+)', '(%0D+)', '(%08+)', '(%09+)' ); $inject = join('|', $injections); $inject = "/$inject/i"; if(preg_match($inject,$str)) { return true; } else { return false; } } if (!isset($_REQUEST['email_address'])) { header( "Location: $feedback_page" ); } elseif (empty($email_address) || empty($comments)) { header( "Location: $error_page" ); } elseif ( isInjected($email_address) ) { header( "Location: $error_page" ); } else { mail( $webmaster_email, "Website Feedback Form Results", $full_name . "\n" . $contact_number . "\n" . $comments, "From: " . $email_address ); header( "Location: " . $thankyou_page ); exit(); } END OF PHP CODE