Your message has been sent.
'; } if (!empty($_POST)) { if (empty($_POST['email']) or !eregi("^[[:alnum:]][a-z0-9_.-]*@[a-z0-9.-]+\.[a-z]{2,6}$", $_POST['email'])) { echo 'Invalid or empty email address.
'; } if (empty($_POST['subject'])) { echo 'Please add a subject to your message.
'; } if (empty($_POST['body'])) { echo 'Your message is empty!
'; } } $email = (empty($_POST['email'])) ? "" : $_POST['email'] ; $subject = (empty($_POST['subject'])) ? "" : $_POST['subject'] ; $body = (empty($_POST['body'])) ? "" : $_POST['body'] ; ?>