*/
//if(isset($_POST['code'])){
//$text = isset($_SESSION[CAPTCHA_SESSION_KEY])? $_SESSION[CAPTCHA_SESSION_KEY] : NULL;
//if(!$p =trim($_POST['code'])){
//$MESSAGE = '
Error: no code submited!!
';
//}
//else if(!checkCaptchaCode($p)){
//$MESSAGE = 'Error: Invalid code submited!!
YOUR CODE : "'.htmlentities(stripslashes($p)).'"
Code: "'.htmlentities(stripslashes($text)).'"
' ;
//}
//else{
//$MESSAGE = 'Correct!!!
CODE: "'.stripslashes($_POST['code']).'"';
$foo = array(1 => "Name","Email","Phone","City","State","country","comments");
$val = array(1 => $Name,$Email,$Phone,$City,$State,$country,$comments);
// if (($Name == "") && ($Email == ""))
//{
// echo "Please enter your name to submit your information
";
// echo "Please enter your Email id to submit your information
";
//}
//if (($Name == "") && ($Email != ""))
//{
// echo "Please enter your Name to submit your information
";
//}
//if (($Name !="") && ($Email == ""))
//{
// echo "Please enter your Email id to submit your information
";
//}
if (($Name != "") && ($Email != ""))
{
$to = "webpromotions@gmail.com";
//$to = "kristinarekha@gmail.com";
$subject="SEO Resellers Contact Us Information";
$mailbody= "CONTACT US FORM INFORMATION \n";
for ($i=1;$i<=count($foo);$i++)
{
//echo $item, "\n";
//echo $HTTP_POST_VARS[$i];
$mailbody .= '
';
$mailbody .= $foo[$i];
$mailbody .= " : ".$val[$i];
//$i++;
}
//echo $mailbody;
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "To: SITEOWNER\r\n";
//$headers .= "To: SITEOWNER\r\n";
$headers .= "From:" . $Email;
/* and now mail it */
mail($to,$subject,$mailbody,$headers);
$MESS = 'Thank you for entering your information
';
$msg='';
}
?>
SEO Reseller Program - Sell Your SEO Services Through Search Engine Genie