Registration for the July 2017 EGI SPG and AARC TNA3.4 engagement meeting

Please register before July 1, 2017

$mailheader

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

\n"; $form .= "

". $emailHeader ."

"; $form .= "\n"; $form .= ""; $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("NGI", "EGI.eu", "PRACE", "XSEDE", "OSG", "other"); #$form .= dropCell("Member of", dropCheckList($arr3, $arr3, false)); $form .= ""; $sessiontext = Array("Wednesday","Thursday","Friday"); $session = Array("wed","thu","fri"); $form .= dropCell("Sesions", dropCheckList($session, $sessiontext, false)); $remotetext = Array("On-site"); $remote = Array("ON-SITE"); $form .= dropCell("Attendance", dropCheckList($remote, $remotetext, false)); $form .= dropCell("Dietary requirements", dropTextInput("diet", 50, 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; } $req_dpaok = (isset($_REQUEST['DPA-OK'])?$_REQUEST['DPA-OK']:"nee"); if ( $req_dpaok != "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; } $req_svg = (isset($_REQUEST['SVG'])?$_REQUEST['SVG']:"nee"); $req_spg = (isset($_REQUEST['SPG'])?$_REQUEST['SPG']:"nee"); $req_onsite = (isset($_REQUEST['ON-SITE'])?$_REQUEST['ON-SITE']:"nee"); $req_remote = (isset($_REQUEST['REMOTE-ONLY'])?$_REQUEST['REMOTE-ONLY']:"nee"); #if ( $req_svg != "ja" && $req_spg != "ja" ) { # $form="Error: no use registering if you do not go to either SVG or SPG, please select at least one.

".$form; # $bDone=false; #} if ( $req_remote != "ja" && $req_onsite != "ja" ) { $form="Error: sorry, but we really want to know if you will be on-site or video-only for logistics reasons.

".$form; $bDone=false; } if ( $req_remote == "ja" && $req_onsite == "ja" ) { $form="Error: we unfortunately cannot support multiple incarnations of the same entity. Please select either remote or on-site.

".$form; $bDone=false; } if ( strlen(strstr($_REQUEST['email'],"@")) < 3 ) { $form="Error: Invalid email address ".htmlentities($_REQUEST['email'])."

".$form; $bDone=false; } foreach ( array("voornaam","achternaam","diet","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.