Cobsa Logo


"; echo $error."

"; echo "
Please go back and fix these errors.

"; echo "

Please enter the following code to verify that you are human

"; } $email = $_POST['email']; $error_message = ""; $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/'; if(!preg_match($email_exp,$email)) { $error_message .= 'The Email Address you entered does not appear to be valid.
'; } if( empty($_POST['name']) ) { $error_message .= 'You did not enter your name.
'; } if( empty($_POST['company'])) { $error_message .= 'You did not enter a company name.
'; } if( empty($_POST['address'])) { $error_message .= 'You did not enter a address.
'; } if( empty($_POST['state'])) { $error_message .= 'You did not enter a state.
'; } if( ($verifyinput !== $verifycode) && ($verifyinput !== $verifycode2)) { $error_message .= 'You did not prove that you were human.
'; } if(!empty($error_message)) { died($error_message); } $to = "bwhite@cancos.com"; $subject = "Cobsa USA mailing list"; $name = $_POST['name']; $company = $_POST['company']; $fullmessage = ""; $from = "cobsa@cobsausa.com"; $headers = "From:" . $from; $fullmessage .= "Name: ".$name."\n\n\n"; $fullmessage .= "Email: ".$email."\n\n\n"; $fullmessage .= "Company: ".$company."\n\n\n"; $fullmessage .= "Address: ".$address."\n\n\n"; $fullmessage .= "State: ".$state."\n\n\n"; $fullmessage .= "Phone: ".$phone."\n\n\n"; if(empty($error_message)) { mail($to,$subject,$fullmessage,$headers); echo "Thank You. Your message has been sent.



"; } } else //if "email" is not filled out, display the form { echo "

Please enter the following code to verify that you are human

"; } ?>