Registration for the February 2012 SPG meeting
Please register before January 30, 2012$bPost = ($_SERVER['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; } foreach ( array("voornaam","achternaam","authority","organisatie","email","email2") as $i => $n ) { if ( strlen($_REQUEST[$n]) > 50 ) { $form="Error: unreasonably long string $n
".$form; $bDone=false; } } } if (!$bDone) { echo $form; } else { //echo "
$emailData"; $bSuccess = appendCSV("$csvfile", ";"); if ($bSuccess) { global $csvArr; $bSuccess = @mail( substr($csvArr[6],1,strlen($csvArr[6])-2), "Registration for the $eventname", $emailData, "From: grid.support@nikhef.nl"); $bSuccess = @mail("davidg@nikhef.nl", "Registration for the $eventname". $cvsArr[2]." ".$csvArr[3], $emailData, "From: davidg@nikhef.nl"); $bSuccess = @mail("david.kelsey@stfc.ac.uk", "Registration for the $eventname". $cvsArr[2]." ".$csvArr[3], $emailData, "From: davidg@nikhef.nl"); } if (!$bSuccess) { echo "
Sorry, internal error: could not send the required emails; your registration may only have been processed partially. Please contact info@eugridpma 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, please contact the
organisers.
|