go back and try again."; elseif(!eregi('^([._a-z0-9-]+[._a-z0-9-]*)@(([a-z0-9-]+\.)*([a-z0-9-]+)(\.[a-z]{2,3})?)$', $fEmail)) echo "The e-mail is not valid. Please go back and try again."; else { // Set the message format $fMessage = "$fName found you at: $fDepartment . \n\n***************\n$fMessage\n***************\n\nIP of sender: $_SERVER[REMOTE_ADDR]\nE-mail of sender: $fEmail"; // Prepare e-mail headers for sending $fHeaders = 'From: ' . $fName . ' <' . $fEmail . '>' . "\r\n" . 'Reply-To: ' . $fEmail . "\r\n" . 'X-Mailer: PHP/' . phpversion(); // Attmpt to e-mail $tryEmail = mail($YourEmail, $fDepartment, $fMessage, $fHeaders); if($tryEmail) echo "Thank you for your comments, your form has been sent and you shall receive a reply shortly."; else echo "We are sorry. The e-mail could not be sent. Please try again later."; } } else { echo '

Please contribute any ideas or suggestions you may have for the site or simply get in contact to tell us about your facination with Calvin and Hobbes. We will do our best to answer any emails as soon as possible but please note that it can sometimes take quite some time for us to send a reply.


Name:
E-Mail:
How did you find us?:
Message:

'; } ?>