We have received your contact information, $firstname $lastname. I will contact you at $email.
If you would prefer to be contacted by phone, please let me know.
We have received your contact information, $firstname $lastname. I will contact you at $email.
"); } } if (!$phone) { if (!$email) { echo ("Thank you for visiting.
If you would like us to contact you, please provide either a phone number or an email address.
Use the link below to return to the Contact form.
"); } } echo("Back to Contact page.
"); echo("Back to webdata home.
"); //Establish a connection to the database server. $dbcnx=@mysql_connect('localhost', 'database_pacsuse', 'dbdwsdn'); //Message if connection fails. if(!$dbcnx) { echo('Sorry. Your information cannot be processed right now. Please try later. Thank you.
'); exit(); } mysql_select_db('database_webdata',$dbcnx); if(!@mysql_select_db('database_webdata')){ die ('Unable to locate that database at this time.
'); } if (isset($_POST['sendinfo'])){ $sql = "INSERT INTO contacts SET firstname = '$firstname', lastname = '$lastname', phone = '$phone', email = '$email'"; if (@mysql_query($sql)) { echo(''); } else { echo('Sorry! There was some ghastly error adding your data. Try again tomorrow, please.
'); } } ?>