include("common.php");
$fldact=get_param("act");
if ($fldact=='do')
{
$fldfull_name=trim(get_param("full_name"));
$fldcompany=trim(get_param("company"));
$fldemail=trim(get_param("email"));
$fldphone1=trim(get_param("phone1"));
$fldphone2=trim(get_param("phone2"));
$fldphone3=trim(get_param("phone3"));
$fldinquiry=strip(trim(get_param("inquiry")));
$flderror='';
if (!strlen($fldfull_name))
$flderror.="Full Name is required.
";
if (!strlen($fldemail))
$flderror.="E-Mail is required.
";
else if (!validEmail($fldemail))
$flderror.="E-Mail is incorrect.
";
if (!strlen($fldphone1) or !strlen($fldphone2) or !strlen($fldphone3))
$flderror.="Phone is required.
";
$sent=0;
if (!strlen($flderror))
{
$message="Full Name: ".$fldfull_name."
".
"Company: ".$fldcompany."
".
"E-Mail: ".$fldemail."
".
"Phone: ".$fldphone1.' '.$fldphone2.' '.$fldphone3."
".
"Inquiry: ".nl2br($fldinquiry)."
";
@mail("info@mirzaagency.com", $fldfull_name." - MirzaAgency.com Contact Form", $message, "From:".$fldemail."\nContent-Type: text/html");
$sent=1;
}
}
?>
The Mirza Agency: Where innovative ideas and marketing combine to create memories
|
|
|
|
Copyright © 2011 The Mirza Agency
All Rights Reserved. |
|