query($insert); $db->close(); //redirect //header("location: http://google.com"); //thank you } $emailError = ""; if(isset($_POST["email"])) $email = $_POST["email"]; else $email = ""; if(isset($_POST["firstName"])) $firstName = $_POST["firstName"]; else $firstName = ""; if(isset($_POST["lastName"])) $lastName = $_POST["lastName"]; else $lastName = ""; if(isset($_POST["phone"])) $phone = $_POST["phone"]; else $phone = ""; if(isset($_POST["company"])) $company = $_POST["company"]; else $company = ""; $validateOK = 0; //validate submitted form // check email field if(isset($_POST["submitted"])) { if(validateEmail($email)) { insertIntoMySQL($email,$firstName, $lastName, $company, $phone); $validateOK = 1; } else { //Generate Error if(strlen($email) == 0) { $emailError = "Contact Email is required. "; } else { $emailError = "Invalid Email address."; } } } ?> Fugoo Live: Platform
Developer Program

Please enter the information in the following form. Field's marked with an asterisk (*) are required.

First Name:
Last Name:
Company Name:
Contact Email:* 0) { echo "

".$emailError; } ?>

Phone Number:
Thank you for submitting your information.

< Back