MSV FM

dot.antimicrobial@66.96.161.157: ~ $
Path : /hermes/sb_web/b744/limousinebustoronto.com/
File Upload :
Current < : /hermes/sb_web/b744/limousinebustoronto.com/quickquote.php

<?php

	$errorMessage	=	NULL;

	if (isset($_POST['submit']))	{

	//	Validate form fields and send confirmation email to contact and campaign team

		if	(!empty($_POST['contactName']))
			$contactName					=	$_POST['contactName'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		if	(!empty($_POST['contactPhone']))
			$contactPhone					=	$_POST['contactPhone'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		if	(!empty($_POST['contactEmail']))
			$contactEmail					=	$_POST['contactEmail'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		if (!preg_match("/^\S+@[A-Za-z0-9_.-]+\.[A-Za-z]{2,6}$/",$contactEmail))
			$errorMessage	.=	"Please Enter A Valid Email Address<br/>";

		if	(!empty($_POST['contactDate']))
			$contactDate					=	$_POST['contactDate'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		if	(!empty($_POST['contactType']))
			$contactType					=	$_POST['contactType'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		if	(!empty($_POST['contactHours']))
			$contactHours					=	$_POST['contactHours'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		if	(!empty($_POST['contactVehicle']))
			$contactVehicle					=	$_POST['contactVehicle'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		if	(!empty($_POST['contactPax']))
			$contactPax					=	$_POST['contactPax'];
		else
			$errorMessage	=	"Please Fill Out All The Fields";

		$contactComments	=	$_POST['contactComments'];

		if	($errorMessage==NULL)	{

			$to      		= "joe@flyingcoachlimo.com";
			$subject 		= "Flying Coach Limousine Services - Quick Quote Requested";


			$headers 		= "From: " . $contactEmail  . "\r\n" .
			   "Reply-To: " . $contactEmail . "\r\n" .
			   "X-Mailer: PHP/" . phpversion();


$comments	=

'
Flying Coach Limousine Services - Quick Quote
---------------------------------------------------
Name: ' . $contactName . '

Phone: ' . $contactPhone . '

Email: ' . $contactEmail . '

Date Requested: ' . $contactDate . '

Type Of Event: ' . $contactType . '

Hours Requested: ' . $contactHours . '

Vehicle Requested: ' . $contactVehicle . '

Passengers: ' . $contactPax . '

Comments: ' . $contactComments;



			if(mail($to, $subject, $comments, $headers))
				$sentMessage = "$contactName - Thank you taking the time to contact Flying Coach Limousine Services. We will contact you shortly.";
			else
				$errorMessage =  "Contact form was not sent due to technical difficulties";

		}


	}

	include ("index.php");

?>

<body onload="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">