[php] if(isset($_POST[‘submit’])){
$EmailFrom = $_REQUEST[‘Email’];
$EmailTo = «info@fernieweb.com»; // Your email address here
$Subject = «Contact_Form»;
if(isset($_POST[‘Name’])){ $Name = Trim(stripslashes($_POST[‘Name’])); }else{ $Name=»»; }
if(isset($_POST[‘Email’])){ $Email = Trim(stripslashes($_POST[‘Email’])); }else{ $Email=»»; }
if(isset($_POST[‘Phone’])){ $Phone = Trim(stripslashes($_POST[‘Phone’])); }else{ $Phone=»»; }
if(isset($_POST[‘Type’])){ $Type = Trim(stripslashes($_POST[‘Type’])); }else{ $Type=»»; }
if(isset($_POST[‘description’])){ $description = Trim(stripslashes($_POST[‘description’])); }else{ $description=»»; }
if(isset($_POST[‘strategy’])){ $strategy = Trim(stripslashes($_POST[‘strategy’])); }else{ $strategy=»»; }
if(isset($_POST[‘ux’])){ $ux = Trim(stripslashes($_POST[‘ux’])); }else{ $ux=»»; }
if(isset($_POST[‘design’])){ $design = Trim(stripslashes($_POST[‘design’])); }else{ $design=»»; }
if(isset($_POST[‘development’])){ $development = Trim(stripslashes($_POST[‘development’])); }else{ $development=»»; }
if(isset($_POST[‘cms’])){ $cms = Trim(stripslashes($_POST[‘cms’])); }else{ $cms=»»; }
if(isset($_POST[‘notsure’])){ $notsure = Trim(stripslashes($_POST[‘notsure’])); }else{ $notsure=»»; }
if(isset($_POST[‘MothSD’])){ $MothSD = Trim(stripslashes($_POST[‘MothSD’])); }else{ $MothSD=»»; }
if(isset($_POST[‘YearSD’])){ $YearSD = Trim(stripslashes($_POST[‘YearSD’])); }else{ $YearSD=»»; }
if(isset($_POST[‘noHugeRush’])){ $noHugeRush = Trim(stripslashes($_POST[‘noHugeRush’])); }else{ $noHugeRush=»false»; }
if(isset($_POST[‘MothLD’])){ $MothLD = Trim(stripslashes($_POST[‘MothLD’])); }else{ $MothLD=»»; }
if(isset($_POST[‘YearLD’])){ $YearLD = Trim(stripslashes($_POST[‘YearLD’])); }else{ $YearLD=»»; }
if(isset($_POST[‘whenItsDone’])){ $whenItsDone = Trim(stripslashes($_POST[‘whenItsDone’])); }else{ $whenItsDone=»false»; }
if(isset($_POST[‘LikelyBudget’])){ $LikelyBudget = Trim(stripslashes($_POST[‘LikelyBudget’])); }else{ $LikelyBudget=»»; }
if($Name == «» or $Email == «» or $Type == «»){
$response[] = «You must complete all fields»;
}
// prepare email body text
$Body = «»;
$Body .= «Name: «;
$Body .= $Name;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «Email: «;
$Body .= $Email;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «Phone: «;
$Body .= $Phone;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «Type of Project: «;
$Body .= $Type;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «Description: «;
$Body .= $description;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «What Need?: «;
$Body .= $strategy; $Body .= «, «;
$Body .= $ux; $Body .= «, «;
$Body .= $design; $Body .= «, «;
$Body .= $development; $Body .= «, «;
$Body .= $cms; $Body .= «, «;
$Body .= $notsure;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «Ideal Star Date: «;
$Body .= «\n»;
$Body .= «Moth: «;
$Body .= $MothSD;
$Body .= «\n»;
$Body .= «Year: «;
$Body .= $YearSD;
$Body .= «\n»;
$Body .= «No Huge Rush: «;
$Body .= $noHugeRush;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «Ideal Launch Date: «;
$Body .= «\n»;
$Body .= «Moth: «;
$Body .= $MothLD;
$Body .= «\n»;
$Body .= «Year: «;
$Body .= $YearLD;
$Body .= «\n»;
$Body .= «When Its Done: «;
$Body .= $whenItsDone;
$Body .= «\n»;
$Body .= «\n»;
$Body .= «Likely Budget: «;
$Body .= $LikelyBudget;
$Body .= «\n»;
// send email
if(empty($response)){
$success = mail($EmailTo, $Subject, $Body, «From: info@fernieweb.com/es»);
//echo $Body;
}
}
[/php]