Contacting baroud.net
session_start();
if ($_SERVER['REQUEST_METHOD'] != 'POST'){
$_SESSION['me'] = $_SERVER['PHP_SELF'];
?>
Mailing address:
3625 de Bastia
Laval, Quebec
Canada H7P 6E6
Or use the form below and it will be our pleasure to contact you!
} else {
$email = $_REQUEST['email'] ;
$name = $_REQUEST['name'] ;
$city = $_REQUEST['city'] ;
$country = $_REQUEST['country'] ;
$phone = $_REQUEST['phone'] ;
$message = $_REQUEST['message'] ;
$extended_info = "Name: " . $name . "\n
Email: " . $email . "\n
City: " . $city . "\n
Country: " . $country . "\n
Phone: " . $phone . "\n
Message: " . $message ;
if (isset($_POST["email"]) && ((empty($email) || empty($name))) {
echo "
Cannot leave the name or email empty.
Go Back
} else {
if(isset($_POST["captcha"]))
if($_SESSION["captcha"]==$_POST["captcha"])
{
mail( "www@baroud.net", "Message from: ${name}",$extended_info, "From: $email" );
// header( "Location: http://www.baroud.net/thankyou.html" );
echo "
Thank you. We will get back to you as soon as possible.
} else {
echo "
Wrong verification code.
Go Back
}
}
}
?>