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 => "firstname","email","subject","comments");
$val = array(1 => $firstname,$email,$subject,$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(isset($_POST['captcha'])){
if(base64_decode($_POST['captcha_id']) == $_POST['captcha']){
if (($firstname != "") && ($email != ""))
{
$to = "pharmacyproductinfo@gmail.com,martin@pharmacyproductinfo.com";
//$to = "kristinarekha@gmail.com";
$subject="Inquiry from Pharmacyproductinfo.com";
$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 = '