$cutofftime) { echo "Registrations have now closed. Sorry."; include('footer.php'); return; } $success = 0; $message = ""; $email = ""; import_request_variables("p",""); // check that the inputs exist if (isset($name) && isset($password) && isset($password2) && isset($email)) { // are the inputs valid? if (strlen($name) < 2 || strlen($name) > 20 || strpos($name,":")!=FALSE || strpos($name,"\n")!=FALSE || strlen($password) < 4 || strcmp($password,$password2)!=0 || strpos($email,"@")===FALSE || strpos($email,".")===FALSE) { ?> The data you submitted is not valid. Please don't use a colon ":" in your username, and ensure that you entered the same password twice. Press the back button to try again. "; $success = 1; } } else { // echo "Required data missing."; } echo ''; echo $message; echo "

"; if (!$success) { ?> Use the form below to register for the current tipping competition.

Username:
Password (at least 4 characters):
Confirm password:
Email address