Contact Us

[insert_php]
if(isset($_POST[’email’])) {

// EDIT THE 2 LINES BELOW AS REQUIRED
$email_to = “[email protected]”;
$email_subject = “Contact Us form filled for EGGBIRYANI.com”;

$first_name = $_POST[‘first_name’]; // required
$email_from = “[email protected]”; // required
$email=$_POST[’email’]; // required
$comments = $_POST[‘comments’]; // required

$email_message = “Form details below.\n\n”;

function clean_string($string) {
$bad = array(“content-type”,”bcc:”,”to:”,”cc:”,”href”);
return str_replace($bad,””,$string);
}

$email_message .= “First Name: “.clean_string($first_name).”\n”;
$email_message .= “Email: “.clean_string($email).”\n”;
$email_message .= “Comments: “.clean_string($comments).”\n”;

// create email headers
$headers = ‘From: ‘.$email_from.”\r\n”.
‘Reply-To: ‘.$email_from.”\r\n” .
‘X-Mailer: PHP/’ . phpversion();
@mail($email_to, $email_subject, $email_message, $headers);
echo “

Success!!!! Thanks for submitting. We will get back to you soon

“;

}
[/insert_php]