Unable to connect to the database server at this time.

" ); } else { // Select the jokes database if (! @mysql_select_db("bikerpla_dwh") ) { echo( "

Unable to locate the dwh database at this time.

" ); } else { if($submit==1) { if ($_POST["name"] && $_POST["state"]!="zzzz" && is_numeric($_POST["zip"]) && $_POST["zip"] && $_POST["email"] && $_POST["radius"]!="zzzz" && $_POST["day_range"]!="zzzz") { $insert = mysql_query("INSERT INTO EVENT_ALERT(NAME, ZIP, STATE, EMAIL, ZIP_RADIUS, DAY_RANGE, ENCODE) VALUES('" . ucwords(strtolower($_POST["name"])) . "', '" . $_POST["zip"] . "', '" . $_POST["state"] . "', '" . trim($_POST["email"]) . "', '" . $_POST["radius"] . "', '" . $_POST["day_range"] . "', '" . md5($_POST["email"]) . "')"); $v_subject = "BikerPlaza.com Motorcycle Alert Activation"; $v_body = ucwords(strtolower($_POST["name"])) . ",\r\n\r\nThank you for signing up to receive motorcycle event alerts from BikerPlaza.com\r\nYou will be alerted " . $_POST["day_range"] . " days before the start date of motorcycle events within " . $_POST["radius"] . " miles of zipcode " . $_POST["zip"] . "\r\n\r\nTo confirm your email and activate the alerts please click this link:\r\nhttp://www.bikerplaza.com/event_alert_confirmation.html?id=" . md5(trim($_POST["email"])) . "\r\n\r\nIf you have any questions or you are having problems with activating your alert please contact support@bikerplaza.com\r\nThank you."; $headers = 'From: BikerPlaza.com ' . "\r\n" . 'Reply-To: support@bikerplaza.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail(trim($_POST["email"]), $v_subject, $v_body, $headers); //mail("btbw666@gmail.com", $v_subject, $v_body, $headers); } else { $v_refill = 1; } } } } mysql_close($dbcnx); ?> BikerPlaza.com - Official Motorcycle Event Alert

Motorcycle Event Alert
Be notified about Motorcycle Events in your area

Motorcycle Resource Directory
 

Your submission failed, please make sure that all the fields are populated correctly and try again.
 

"); echo(mysql_error()); } else { if ($submit==1) { echo("

 

Your motorcycle event alert is submitted.
Please check your email at " . trim($_POST["email"]) . " for confirmation and activation of your alert settings.
 

 

"); echo(""); } } ?>

By subscribing to BikerPlaza.com Event Alert you can make sure that you never miss another motorcycle event again. Simply choose a zipcode, a distance you would like to cover from your zipcode, and how many days in advance would you like to be notified.
We will email you information about the relevant motorcycle events as they are posted.


Please enter the alert settings below, once submitted, you will get a confirmation email. Please follow the instructions in the email to activate your alert.

"); } else { echo(""); } ?>
Name
State
Zip "); } else { echo(""); } ?> (Click here to find a zipcode)
Email "); } else { echo(""); } ?>
Your email will NEVER be given to anyone other then BikerPlaza.com  

Alert me of new event within  miles range from my zipcode.
Email me once, days before the event.