//----- // Set variables //----- $submit = @$_POST['submit'] ? true : false; $id = @$_GET['id']; $db_host = 'amtas.ovid.u.washington.edu:37846'; $db_user = 'root'; $db_pass = 'wc87an1k25jknakjj4l4'; $db_db = 'amtascoursereg'; $db_table = 'registrants'; $amount = 1250; if (@$_GET['amount']) $amount = @$_GET['amount']; // We need to keep track of whether or not this is an update or new registration // if it's new, continue and insert into the database (handled by submit.php) // if it's an update, we should delete the row referenced by $id before inserting // the new data (again, handled by submit.php) // I think the easiest way to handle this is just to create a hidden variable to // pass through upon finding that $id is true //----- // End Variables and Connect to Database (if necessary) //----- // Only if this is a modification request (i.e. not the first time through) if ($id) { $mc = mysql_connect($db_host,$db_user,$db_pass); if (!$mc) { die('Could not connect: ' . mysql_error()); } // Select data from the database mysql_select_db($db_db, $mc); $query = "SELECT * FROM registrants WHERE ID = $id LIMIT 1"; $mq = mysql_query($query); if (!$mq) { die('Could not query: ' . mysql_error()); } $row = mysql_fetch_array($mq); // Populate the variables for pre-filling the form $o_title = $row['title']; $o_firstname = $row['firstname']; $o_middleinitial = $row['middleinitial']; $o_lastname = $row['lastname']; $o_position = $row['position']; $o_organization = $row['organization']; $o_address = $row['address']; $o_address2 = $row['address2']; $o_city = $row['city']; $o_state = $row['state']; $o_country = $row['country']; $o_zip = $row['zip']; $o_telephone = $row['telephone']; $o_fax = $row['fax']; $o_email = $row['email']; $o_paytype = $row['paytype']; } // Default stuff, useful for all pages require("./_open.php"); //----- // Default page (submit hasn't been clicked yet), left in HTML for ease of editing //----- if (!$submit) { ?>
March 20–22, 2012
University of Washington campus, Seattle, WA
If you enroll and cannot attend, a 100% refund of the registration fee less a $35 processing fee will be granted if requested two weeks prior to the course. If you cancel within two weeks of course start, you will receive a 50% refund of your tuition, less the $35 fee. No refunds will be granted to registrants who fail to cancel prior to the opening of the course. If you are unable to attend, you may send another person in your place.
AMTAS reserves the right to cancel this program in the event of low enrollment or other circumstances beyond its control. The total amount of liability of the University will be limited to a refund of the attendance fee. Attendees who incur any expenses (including but not limited to nonrefundable airline tickets) in anticipation of attending the program do so at their own risk. Submission of this registration form acknowledges acceptance of these provisions.
The University of Washington provides equal opportunity in education without regard to race, color, creed, religion, national origin, gender, sexual orientation, age, marital status, disability or status as a disabled veteran or Vietnam era veteran in accordance with University policy and applicable federal and state statutes and regulations.
The University of Washington is committed to providing access and reasonable accommodation in its services, programs, activities, education and employment for individuals with disabilities. To request disability accommodation, contact the Disability Services Office at least ten days in advance of the event: 206-543-6450 (voice); 206-543-6452 (TTY); 206-685-7264 (fax); dso@u.washington.edu.