The following problem occured:
The following fields are required:
$ErrorMessage
";
}
}
switch ($_POST['Submit']) {
case "Submit":
SendMessage();
break;
default:
MainPage($ErrorMessage);
}
function MainPage($ErrorMessage) {
$PhpSelf=$_SERVER['PHP_SELF'];
if (""!=$ErrorMessage)
{
extract($_POST);
// FINISH ERROR CHECKING HERE
if ("Y"==$planting) $PlantingChecked="checked";
if ("Y"==$walkway) $WalkwayChecked="checked";
if ("Y"==$patio) $PatioChecked="checked";
if ("Y"==$deck) $DeckChecked="checked";
if ("Y"==$wall) $WallChecked="checked";
if ("Y"==$other) $OtherChecked="checked";
}
print<<
Office:
860-665-7378
Bryan
Cell:
860-982-1249
Bruce
Cell:
860-982-5193
$ErrorMessage
EOT;
}
function SendMessage() {
extract($_POST);
$TodaysDate=date("m/d/Y H:i a");
$Message="
This email was submitted from Masterscapesofct.com on $TodaysDate
Submitted Information:
Name: $full_name
Email: $email
Phone: $phone
Planting: $planting
Walkway: $walkway
Patio: $patio
Deck: $deck
Wall: $wall
Other: $other
Price Range: $range
";
if (mail("brufair@yahoo.com", "Website Submission - $TodaysDate", $Message))
{
print "
Message sent succesfully!
You will be hearing from us shortly