Employees, Inc.
Contact Us

Help:
Fill out the form below and we will be sure and get right back to you.
 Contact Us
Your Name:
Email Address:
Comments:


©2004 Employees, Inc. All rights reserved.

'; } else { // Check for nulls if ($Name == '') { $Nulls = "Yes"; $NameErrorMessage = ' Enter Your Name! '; } if ($EmailAddress == '') { $Nulls = "Yes"; $EmailAddressErrorMessage = ' Enter your Email Address! '; } // If nulls, display form with error messages if ($Nulls == "Yes") { echo "Employees, Inc.
Contact Us

Help:
Fill out the form below and we will be sure and get right back to you.
$NameErrorMessage $EmailAddressErrorMessage $CommentsErrorMessage
 Contact Us
Your Name:
Email Address:
Comments:


©2004 Employees, Inc. All rights reserved.

"; } else { // Insert the record require_once 'DB.php'; $dsn = "mysql://wizzyweb:wizzyweb@localhost/wizzyweb"; $db = DB::connect($dsn); if (DB::isError($db)) { die ($db->getMessage()); } $sql = stripslashes($sql); $result = $db->query("INSERT INTO Contact (Name, EmailAddress, Comments) VALUES ('$Name', '$EmailAddress', '$Comments');"); if (DB::isError($result)) { die ($result->getMessage()); } //close conection $db->disconnect(); // Send the mail mail("$EmailAddress", "Thank you $Name for contacting Employees, Inc.", "Your Name: $Name Email Address: $EmailAddress Comments: $Comments", "From: support@wizzyweb.com"); // Redirect header("Location: http://www.wizzyweb.com/4/employees-inc"); } } ?>