header("pragma:no-cache"); ?>
Grid Tutorial 08 Event Home Programme Registration Participants Flyer RC-RUG SARA Surfnet Nikhef GridForum NL EGEE |
Registration for the Grid Tutorial 2008Please register before October 16th, 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 ( strlen(strstr($_REQUEST['email'],"@")) < 3 ) { $form="Error: Invalid email address ".htmlentities($_REQUEST['email'])." ".$form; $bDone=false; } foreach ( array("voornaam","achternaam","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 { $emailData.="\nThese data you provided as part of your ". "registration:\n$summaryData"; #echo "Email to: ".htmlentities($_REQUEST['email'])."\n"; #echo "Message:\n $emailData\n"; $bSuccess = appendCSV($csvfile, ";"); if ($bSuccess) { $bSuccess = @mail($_REQUEST['email'], "Your Registration for the $eventname", $emailData, "From: nobody@nikhef.nl"); $bSuccess = @mail("janjust@nikhef.nl", "Registration 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 janjust@nikhef.nl for further information, or try again. "; } else { ?>
Comments to . |