You forgot to enter your name."; } if(!empty($_POST[email])) { $email1 = strip_tags($_POST[email]); } else { echo "
You forgot to enter your email.
"; } if(!empty($_POST[status])) { $status1 = $_POST[status]; } else { echo "
You forgot to select your status.
"; } if(!empty($_POST[subject])) { $subject1 = strip_tags($_POST[subject]); } else { echo "
The subject field is empty.
"; } if(!empty($_POST[message])) { $message1 = strip_tags($_POST[message]); } else { echo "
You forgot to write the messgae.
"; } if ($_SESSION["Code"]!= $_POST["txtCode"] ) $strMsg = "Your Security code was incorrect. Please retry."; if( $_SESSION["Code"]== $_POST["txtCode"] && !empty($name1) && !empty($email1) && !empty($status1) && !empty($subject1) && !empty($message1)) { //I use the email for official corespondence $to = "$_SERVER[HTTP_HOST] <$aset[ContactEmail]>"; //display the message author and his email $from = "From: $name1 <$email1>"; //this subject will be visible only for you $sub = "Contact form message"; //fit together all the post information into one message $message = "$subject1 \n\n"."$message1 \n\n"."$name1\n$status1"; //if a user has insert some html/javascript/php tags //we will remove them for security reasons $message = stripslashes($message); //now send the message mail($to, $sub, $message, $from); //display "thank you" message. You can edit it and write what you want. //if you want to use quotes at this message, use this format: \"text here\" //you can use any html tags echo "
Thank you for contacting us.
We will respond within 24 hours.
"; include_once ("footer.php"); exit(); } } else { //If not submit... } $_SESSION["Code"] = NewCode(); ?>

Your Name:
Your Email:
Your Status:
Subject:
Message:
Please identify the image and type it in the box :
   
 


Copyright 2012. . All rights reserved.