Small piece of code below - the required fields section is fine, but doesn’t work for the comments field?
[php]
<?php if(isset($_POST['submit'])) { $name = $_POST['name']; // required $telephone_number = $_POST['telephonenumber']; // required $email_address = $_POST['emailaddress']; // required $email_address_confirm = $_POST['emailaddressconfirm']; // required $person_or_company = $_POST['personorcompany']; // required //A: 1st field corresponds to last field of C (below) - 2nd fields are html names $comments = $_POST['comments']; // required $interest = $_POST['interest']; // required $how_find = $_POST['source']; $termsagreed = $_POST['termsagreed']; // required if(!isset($_POST['name']) || $_POST['name']=='' || !isset($_POST['telephonenumber']) || $_POST['telephonenumber']=='' || // correspond to html names - these are the required fields !isset($_POST['emailaddress']) || $_POST['emailaddress']=='' || !isset($_POST['emailaddressconfirm']) || $_POST['emailaddressconfirm']=='' || !isset($_POST['personorcompany']) || $_POST['personorcompany']=='' || !isset($_POST['interest']) || $_POST['interest']=='' || !isset($_POST['comments']) || $_POST['comments']=='' || !isset($_POST['termsagreed']) || $_POST['termsagreed']==''){ die('You have not filled in all of the required fields - please hit your back button and try again!'); } [/php]