// Add this at the very top of your page, before the html tag.
----------------------------------------------------------------
Please enter your name!";
$mailSent = 0;
}
}
if(isset($email)){
if ($email == ""){
$emailError == "Please enter your email address!";
$mailSent = 0;
}
if (!eregi("^[a-z0-9]+([-_\.]?[a-z0-9])+@[a-z0-9]+([-_\.]?[a-z0-9])+\.[a-z]{2,4}", $email)){
$emailError = "
Please enter a valid email address!";
$mailSent = 0;
}
}
if ($mailSent == 0){
?>
---------------------------------------------------------------
// Create a Form
----------------------------------------------------------------