0){ $shop_id = $_GET['shop_id']; } else { $shop_id = current_shop_by_ip(); } switch ($_GET['error']) { case 'new_error_message': //this is a sample error message. insert error case here $error_message = ''; break; default: $error_message = 'Enter or Update Contact Information - Thank-you for supporting Positive Spin.

'; break; } $page_shop_log = PAGE_SHOP_LOG . "?shop_id=$shop_id"; if($_GET['contact_id'] == 'new_contact'){ //adds contact is new_contact is selected $insertSQL = sprintf("INSERT INTO contacts (date_created) VALUES (%s)", GetSQLValueString('current_time', "date")); mysql_select_db($database_YBDB, $YBDB); $Result1 = mysql_query($insertSQL, $YBDB) or die(mysql_error()); mysql_select_db($database_YBDB, $YBDB); $query_Recordset2 = "SELECT MAX(contact_id) as new_contact_id FROM contacts;"; $Recordset2 = mysql_query($query_Recordset2, $YBDB) or die(mysql_error()); $row_Recordset2 = mysql_fetch_assoc($Recordset2); $totalRows_Recordset2 = mysql_num_rows($Recordset2); $contact_id = $row_Recordset2['new_contact_id']; $contact_id_entry = 'new_contact'; mysql_free_result($Recordset2); } elseif(isset($_GET['contact_id'])) { //else contact_id is assigned from passed value $contact_id = $_GET['contact_id']; $contact_id_entry = $_GET['contact_id']; } else { $contact_id = -1; $contact_id_entry = -1; } $editFormAction = "?contact_id={$contact_id}&shop_id={$shop_id}"; if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form1")) { $updateSQL = sprintf("UPDATE contacts SET first_name=%s, middle_initial=%s, last_name=%s, email=%s, DOB=%s, receive_newsletter=%s, phone=%s, address1=%s, address2=%s, city=%s, `state`=%s, zip=%s, pass=ENCODE(%s,'yblcatx') WHERE contact_id=%s", GetSQLValueString($_POST['first_name'], "text"), GetSQLValueString($_POST['middle_initial'], "text"), GetSQLValueString($_POST['last_name'], "text"), GetSQLValueString($_POST['email'], "text"), GetSQLValueString($_POST['DOB'], "date"), GetSQLValueString($_POST['list_yes_no'], "int"), GetSQLValueString($_POST['phone'], "text"), GetSQLValueString($_POST['address1'], "text"), GetSQLValueString($_POST['address2'], "text"), GetSQLValueString($_POST['city'], "text"), GetSQLValueString($_POST['state'], "text"), GetSQLValueString($_POST['zip'], "text"), GetSQLValueString($_POST['password'], "text"), GetSQLValueString($_POST['contact_id'], "int")); mysql_select_db($database_YBDB, $YBDB); $Result1 = mysql_query($updateSQL, $YBDB) or die(mysql_error()); if ($_POST['contact_id_entry'] == 'new_contact'){ //navigate back to shop that it came from $pagegoto = PAGE_SHOP_LOG . "?shop_id={$shop_id}&new_user_id={$contact_id}"; header(sprintf("Location: %s", $pagegoto)); } } mysql_select_db($database_YBDB, $YBDB); $query_Recordset1 = "SELECT *, DECODE(pass,'yblcatx') AS passdecode FROM contacts WHERE contact_id = $contact_id"; $Recordset1 = mysql_query($query_Recordset1, $YBDB) or die(mysql_error()); $row_Recordset1 = mysql_fetch_assoc($Recordset1); $totalRows_Recordset1 = mysql_num_rows($Recordset1); ?>

I, and my heirs, in consideration of my participation in the Positive Spin Community Bike Project's Open Workshop hereby release Positive Spin, its officers, employees and agents, and any other people officially connected with this organization, from any and all liability for damage to or loss of personal property, sickness, or injury from whatever source, legal entanglements, imprisonment, death, or loss of money, which might occur while participating in said event/activity/class. Specifically, I release Positive Spin from any liability or responsibility for my personal well-being, condition of tools and equipment provided and produced thereof, including, but not limited to, bicycles and modes of transportation produced by participants. The Positive Spin Community Bike Project is a working, mechanical environment and I am aware of the risks of participation. I hereby state that I am in sufficient physical condition to accept a rigorous level of physical activity and exertion, as is sometimes the case when working in a mechanical environment. I understand that participation in this program is strickly voluntary and I freely chose to participate. I understand Positive Spin does not provide medical coverage for me. I verify that I will be responsible for any medical costs I incur as a result of my participation.

I agree