function checkcaptcha() {
session_start();
if ($_SESSION["pass"] != $_POST["userpass"]) {
//die("Sorry, you failed the CAPTCHA. Note that the CAPTCHA is case-sensitive. Please hit your browser back button and try again.");
return 2;
}
}
$dontsendemail = 0;
$err=0;
$msg="";
if($_POST["submit"]=="Submit")
{
$to="mail@veefishnets.com";
$subject=$_POST['name']."Enquired from Vee Fishnets Website!";
$msg.="1. Name :".$_POST['name']."\n
";
$msg.="2. E-mail:".$_POST['email']."\n
";
$msg.="3. Phone:".$_POST['phone']."\n
";
$msg.="4. Contact:". $_POST['contact']."\n
";
$msg.="5. Enquiry:". $_POST['enquiry']."\n
";
if ($dontsendemail == 0) $dontsendemail = checkcaptcha($email);
if ($dontsendemail == 0) $dontsendemail= mail( $to, $subject, $msg,"From:".$_POST['name']." <".$_POST['email'].">\nX-Sender: <".$_POST['email'].">\nX-Priority: 1\nReturn-Path: <".$_POST['email'].">\nContent-Type: text/html; charset=iso-8859-1\n" );
$err = $dontsendemail;
}
?>
Email us : mail@veefishnets.com
Send us a Message |
|
if ($err == 1) { echo "Thanks ,Your message has been sent successfully"; } else if ($err == 2) { echo "Human verification Failed"; } ?> |
|