|
////////////////////////
session_start();
////////////////////////
$show_f2=true;
////////////////////////////////////
//////////////////////////////////////////////////////////
if (isset($contact))
{
//$sc = $_SESSION[security_code];
//echo " sc = ".$_SESSION[security_code];
//echo " sc sc = ".$_SESSION[security_code];
//echo " SC = ".$security_code;
// if (isset($security_code) == $_SESSION[security_code])
// if ($security_code == $sc)
if( $_SESSION['security_code'] == $_POST['security_code'])
{
$toemail = "jicom@joinindia.com";
$mail_headers="From: $fname <$email_id>\r\nContent-Type: text/html; charset=iso-8859-1";
if (isset($email_id))
{
@mail($toemail,$subject,$message,$mail_headers);
echo "Hello $fname , Your message has been sent !! We will get back to you ASAP ";
$show_f2=false;
} //valid email
///////////////////////////////////////////////////
$show_f2=false;
} //if security code
else
{
echo "Sorry, you have provided an invalid security code ";
$show_f2 = true;
}
} //contact
///////////////////////////////////////////////////
?>
//////////////////////////////////////////////////////////
if ($show_f2)
{
?>
} //show_f2
?>
|