Registration for the February 2012 SPG meeting

Please register before January 30, 2012

$mailheader

"; require("form.php"); if ($bPost) $bDone = true; $form = "

\n"; $form .= "

". $emailHeader ."

"; $form .= "\n"; $form .= ""; $arr = Array("mr.", "ms."); $form .= dropCell("I am ", dropRadio("m/v", $arr, false,"",false)); $form .= dropCell1("First name *", dropTextInput("voornaam", 30, true)); $form .= dropCell1("Last name *", dropTextInput("achternaam", 30, true)); $form .= dropCell("Organisation * ", dropTextInput("organisatie", 30, true)); $form .= dropCell("Email *", dropTextInput("email", 30, true)); $form .= dropCell("Email (confirm)*", dropTextInput("email2", 30, true)); $arr3 = Array("EGI", "NGI", "DEISA", "PRACE", "OSG", "other"); $form .= dropCell("Member of", dropCheckList($arr3, $arr3, false)); $form .= ""; $remotetext = Array("Remote","On-site"); $remote = Array("REMOTE-ONLY","ON-SITE"); $form .= dropCell("Attendance", dropCheckList($remote, $remotetext, false)); $form .= ""; $dpa = Array("Yes,
I agree that my name and affiliation will be shown on the participants page. All other information will be kept for use by the organisers.
"); $dpaconf = Array("DPA-OK"); $form .= dropCell("Data Protection Agreement *", dropCheckList($dpaconf, $dpa, false)); $form .= "

* = required field



"; $form .= "\n"; $form .= "\n"; $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.