hi i have some code... [code]<? // Website Contact Form Generator // http://www.tele-pro.co.uk/scripts/contact_form/ // This script is free to use as long as you // retain the credit link // get posted data into local variables $EmailTo = "piercam03@gmail.com"; $Name = Trim(stripslashes($_POST['Name'])); $Email = Trim(stripslashes($_POST['Email'])); $Subject = Trim(stripslashes($_POST['Subject'])); $Message = Trim(stripslashes($_POST['Message'])); $Rating= Trim(stripslashes($_POST['Rating'])); $IP= $_SERVER["REMOTE_ADDR"]; // validation $validationOK=true; if (!$validationOK) { echo "Error"; exit; } //THE ERRORS if (Trim($Name)=="") { echo"The Name Filed Was Empty"; exit; } elseif (Trim($Email)=="") { echo"The Email Field Was Empty"; exit; } elseif (Trim($Message)=="") { echo"The Message Field Was Empty"; exit; } // prepare email body text $Body = ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Email: "; $Body .= $Email; $Body .= "\n"; $Body .= "Subject: "; $Body .= $Subject; $Body .= "\n"; $Body .= "Message: "; $Body .= $Message; $Body .= "\n"; $Body .= "Rating: "; $Body .= $Rating; $Body .= "\n"; $Body .= "IP: "; $Body .= $IP; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$Email>"); // redirect to success page if ($success){ echo"<div id=\"main\"><h2>SUCCESS!</h2>Here is the information sent as you provided:<br> Name: $Name <br> Email: $Email <br> Message: $Message <br> Rating: $Rating <br> Your IP address was also stored, IP: $IP <br><br> Press F5 on your keyboard to return to where you were previously or select a page from the navigation bar on the left. <br><br>"; } else{ echo"<br><h2>ERROR</h2> Sorry, there was an error. <br><br> *NOTE* you MUST NOT click the contact page on the navigation bar or all the fields you filled in will be reset, If however you press the BACK button on your browser you will return to the form with your previous information saved."; } ?>[/code] basically when you fill out my form (www.iplay.co.nr/contact.php) its uses this file to send your details, the only problem is i can only get it to show one error at a time so even if the name and email fields are blank it only says the name one is, then once youve filled in the name one it tells you that the email is blank, how can i get it to show all of my errors together