Registration for the QWG Amsterdam Meeting 2008
Please register before October 20th, 2008$bPost = ($REQUEST_METHOD=="POST"); $bDone = false; $emailHeader = "$mailheader
"; require("form.php"); if ($bPost) $bDone = true; $form = "
"; if ( $bPost ) { if ( $_REQUEST['email'] != $_REQUEST['email2'] ) { $form="Error: Email addresses inconsistent".$form; $bDone=false; } if ( $_REQUEST['DPA-OK'] != "ja" ) { $form="Error: You cannot register using this form unless you agree to the data protection agreement. Please check the agreement checkbox below.
".$form; $bDone=false; } if ( strlen(strstr($_REQUEST['email'],"@")) < 3 ) { $form="Error: Invalid email address ".htmlentities($_REQUEST['email'])."
".$form; $bDone=false; } if ( $_REQUEST['hotelbooking'] == "Yes please reserve a hotel" && (strlen($_REQUEST['arrival']) < 5 || strlen($_REQUEST['departure']) < 5) ) { $form="Error: If you request hotel reservation, you must specify arrical and departure date
".$form; $bDone=false; } foreach ( array("voornaam","achternaam","organisatie","email","email2","hotelbooking","arrival","departure") as $i => $n ) { if ( strlen($_REQUEST[$n]) > 50 ) { $form="Error: unreasonably long string $n
".$form; $bDone=false; } } } if (!$bDone) { echo $form; } else { if ( $_REQUEST['hotelbooking'] == "Yes please reserve a hotel" ) { $emailData.=<<
$emailData\n"; $bSuccess = appendCSV($csvfile, ";"); if ($bSuccess) { $bSuccess = @mail($_REQUEST['email'], "Your Registration for the $eventname", $emailData, "From: nobody@nikhef.nl"); $bSuccess = @mail("ronalds@nikhef.nl", "Registration for the $eventname ". $_REQUEST['voornaam']." ".$_REQUEST['achternaam'], $emailData, "From: nobody@nikhef.nl"); if ( $_REQUEST['hotelbooking'] == "Yes please reserve a hotel" ) { $bSuccess = @mail("mklei@nikhef.nl", "Registration with hotel for the $eventname ". $_REQUEST['voornaam']." ".$_REQUEST['achternaam'], $emailData, "From: nobody@nikhef.nl"); } } if (!$bSuccess) { echo "
Sorry, internal error: could not send the required emails; your registration may only have been processed partially. Please contact ronalds@nikhef for further information, or try again.
"; } else { ?>
Thank you very much for your registration request. You'll receive a confirmation shortly, stating your preferences and selection. If you have trouble or do not receive the automatic reply within 15 minutes, please contact the organisers.
|