if (isset($_POST[‘FirstName’])) $FirstName=strip_tags($_POST[‘FirstName’]); else $FirstName=””;
if (isset($_POST[‘Surname’])) $Surname=strip_tags($_POST[‘Surname’]); else $Surname=””;
if (isset($_POST[‘Telephone’])) $Telephone=strip_tags($_POST[‘Telephone’]); else $Telephone=””;
if (isset($_POST[‘Email’])) $Email=strip_tags($_POST[‘Email’]); else $Email=””;
if (isset($_POST[‘Street’])) $Street=strip_tags($_POST[‘Street’]); else $Street=””;
if (isset($_POST[‘Postcode’])) $Postcode=strip_tags($_POST[‘Postcode’]); else $Postcode=””;
if (isset($_POST[‘Suburb’])) $Suburb=strip_tags($_POST[‘Suburb’]); else $Suburb=””;
if (isset($_POST[‘BestTimeToCallBack’])) $BestTimeToCallBack=strip_tags($_POST[‘BestTimeToCallBack’]); else $BestTimeToCallBack=””;
if (isset($_POST[‘DrivingLessonDeal’])) $DrivingLessonDeal=strip_tags($_POST[‘DrivingLessonDeal’]); else $DrivingLessonDeal=””;
if (isset($_POST[‘Message’])) $Message=strip_tags($_POST[‘Message’]); else $Message=””;
if (isset($_POST[‘key1’])) $key1=strip_tags($_POST[‘key1’]); else $key1=””;
if (isset($_POST[‘key2’])) $key2=strip_tags($_POST[‘key2’]); else $key2=””;
if (isset($_POST[‘ipaddress’])) $ipaddress=strip_tags($_POST[‘ipaddress’]); else $ipaddress=””;
if (isset($_POST[‘securitynumber’])) $securitynumber=strip_tags($_POST[‘securitynumber’]); else $securitynumber=””;
//echo $Fullname.”
“.$Phone_Number.”
“.$Email.”
“.$securitynumber.”
“.$key1.”
“.$key1.”
“;
if($FirstName==”” || $Telephone==”” || $Email==”” || $securitynumber==”” || $key1==”” || $key2==””){
$errors=1;
$error.=”
}
if ($errors==0)
{
$computeKey=$securitynumber*124-1248;
if ($computeKey != $key1)
{
$errors=1;
$error.=”
}
}
if($errors==1)
echo $error;
else
{
$form_details=”
First Name | [ “.$FirstName.” ] |
Surname | [ “.$Surname.” ] |
Telephone | [ “.$Telephone.” ] |
[ “.$Email.” ] | |
Street No. & Name | [ “.$Street.” ] |
Suburb | [ “.$Suburb.” ] |
Postcode | [ “.$Postcode.” ] |
Best Time To Call You Back | [ “.$BestTimeToCallBack.” ] |
Driving Lessons Selected | [ “.$DrivingLessonDeal.” ] |
Your Message | [ “.$Message.” ] |
“;
$emailbody = ”
=======================================================================
*** BOOKINGs *** Form Submitted from BestDrivingSchool.com.au
=======================================================================
First Name : “.$FirstName.”
Surname : “.$Surname.”
Telephone : “.$Telephone.”
Email : “.$Email.”
Street No. & Name: “.$Street.”
Suburb: “.$Suburb.”
Postcode: “.$Postcode.”
Best Time to call back: “.$BestTimeToCallBack.”
————————————-
Driving Deal Selected :
“.$DrivingLessonDeal.”
————————————-
Message:
“.$Message.”
==================================================================
“;
$towebmaster=”webmaster.biz@rahmadrivingschool.com.au”;
$toinfo=”info@rahmadrivingschool.com.au”;
$subject=”[RDS Website Bookings Form] “.$FirstName.” “.$LastName;
$headers=”From: RahmaDrivingSchool.com.au”;
//wp_mail( $to, $subject, $emailbody , $headers );
mail($toinfo,$subject,$emailbody ,$headers);
echo ‘
We thank you and appreciate you submitting your booking request!
We will contact you as soon as possible with the booking details.
‘;
echo ‘Your form details that was sent to us.
‘.$form_details;
}
?>
Driving School Melbourne Suburbs
Bellfield, Fawkner, Macleod, Brunswick, Greensborough, Mill Park, Bulleen,Driving School Heidelberg, Preston, Bundoora Driving Lessons, Heidelberg Heights, Reservoir, Campbellfield, Heidelberg West, Thomastown, Coburg, Ivanhoe, View Bank, Coburg North, Ivanhoe East, Macleod, Doncaster, Lalor, Mill Park, Rosana, Bundoora, Yallambie, MelbourneAccepted Payment Methods
Cash, Direct Deposit, Cheque