Registration

"; if(strlen($lname) > 100) $error = $error."Seriously? Your last name is ".strlen($lname)." characters long? In that case please contact the webmaster"; $fname = htmlspecialchars($_POST['fname']); if(!$fname) $error = $error."Please enter a first name
"; if(strlen($lname) > 100) $error = $error."Seriously? Your first name is ".strlen($lname)." characters long? In that case please contact the webmaster"; $affiliation = htmlspecialchars($_POST['affiliation']); if(!$affiliation) $error = $error."Please enter an affiliation
"; if(strlen($lname) > 500) $error = $error."Seriously? The name of your affiliation is ".strlen($lname)." characters long? In that case please contact the webmaster"; $address = htmlspecialchars($_POST['address']); if(!$address) $error = $error."Please enter the address of your affilition
"; if(strlen($lname) > 2000) $error = $error."Seriously? The address of your affiliation is ".strlen($lname)." characters long? In that case please contact the webmaster"; $email = htmlspecialchars($_POST['email']); if(!$email) $error = $error."Please enter an e-mail address
"; else if(!is_email($email)) $error = $error."The e-mail address is invalid. Please enter a valid e-mail address
"; $adddinner = htmlspecialchars($_POST['adddinner']); if(!$adddinner) $adddinner=0; if(!($adddinner == 0 || $adddinner == 1 || $adddinner == 2)) $error = $error."The number of additional dinners has to be a non-negative integer, you can order at most 2 additional dinners
"; $addexcursion= htmlspecialchars($_POST['addexcursion']); if(!$addexcursion) $addexcursion=0; if(!($addexcursion == 0 || $addexcursion == 1 || $addexcursion == 2)) $error = $error."The number of additional excursion participationss has to be a non-negative integer, you can order at most 2 additional excursions
"; if($error == "") { if (!writefile($lname, $fname, $affiliation, $address, $email, $adddinner, $addexcursion) || !writemail($lname, $fname, $affiliation, $address, $email, $adddinner, $addexcursion)) print "An internal error occurred, please try again later or contact the webmaster"; else { $dataok = True; $htmladdress = nl2br($address); print << Your registration was successful. The following data has been registered:
Last Name: $lname
First Name: $fname
Affiliation: $affiliation
Address: $htmladdress
e-Mail: $email
Additional conference dinner (+TWD 1500, payment on site): $adddinner
Additional excursion (+TWD 1500, payment on site): $addexcursion
This information has also been sent to you by e-mail.
Please proceed to the payment site. Registration will be effective once payment has been received. OKEND; } } else print "

".$error."

"; } if(!$dataok) { $self = $_SERVER['PHP_SELF']; print << This is the PQCrypto 2011 registration website. To register at the conference please fill out the registration form below and then proceed through payment. The registration fees for PQCrypto 2011 are as follows:

Early registration (until Nov 7, 2011) Late registration (after Nov 7, 2011)
Full registration TWD 10,000 TWD 12,000
Student registration TWD 8,000 TWD 10,000

These fees cover the conference talks, excursion, conference dinner, 3 lunches, welcome reception, and a copy of the proceedings.

Registration Form

Last Name:
First Name:
Affiliation:
Address:
e-Mail:
Additional conference dinner
(+TWD 1500, payment on site)
Additional excursion
(+TWD 1500, payment on site)
FORMEND; } ?>