"; elseif(strlen($firstname) > 16) $errorstring .= "First Name must be a maximum of 16 characters long
"; else { $allowed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' "; if(!allowedChars($firstname, $allowed)) $errorstring .= "First Name contains illegal characters!
"; } $lastname = formatField($lastname); if(strlen($lastname) < 1) $errorstring .= "You must enter your Last Name
"; elseif(strlen($lastname) > 20) $errorstring .= "Last Name must be a maximum of 20 characters long
"; else { $allowed = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' "; if(!allowedChars($lastname, $allowed)) $errorstring .= "Last Name contains illegal characters!
"; } $email1 = strtolower(formatField($email1)); $email2 = strtolower(formatField($email2)); if($email1 != $email2) $errorstring .= "The Email Addresses you entered do not match
"; elseif(strlen($email1) < 1) $errorstring .= "You must enter your email address
"; elseif(!isValidEmail($email1)) $errorstring .= "Email Address is not valid!
"; $test = mysql_query("SELECT * FROM accounts WHERE email = \"$email1\""); if(mysql_numrows($test) != 0) $errorstring .= "The Email Address you entered is already registered!
"; $pass1 = formatField($pass1); $pass2 = formatField($pass2); if($pass1 != $pass2) $errorstring .= "Passwords do not match!
"; elseif(strlen($pass1) == 0) $errorstring .= "You have not entered a password!
"; else { $charset = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; if((strlen($pass1) < 6) || (strlen($pass1) > 24)) $errorstring .= "Passwords must be between 6 and 24 characters long
"; elseif(!allowedChars($pass1, $charset)) $errorstring .= "Passwords can only contain letters and numbers
"; } if($country == 0) $errorstring .= "Please select your country of residence
"; if($termsread != 1) $errorstring .= "You must agree to our terms and conditions!
"; /* If no errors found insert into DB */ if(strlen($errorstring) == 0) { $result = mysql_query("INSERT INTO accounts (forename, surname, email, password, type, optin, country) VALUES (\"$firstname\", \"$lastname\", \"$email1\", \"$pass1\", 1, $optin, $country)"); $done = 1; } } /* Load Country List */ $countries = mysql_query("SELECT * FROM countries ORDER BY country"); include("header.php"); if(!isset($optin)) $optin = 0; ?>



Welcome to Stayaround, !

Thanks for signing up. You now have all the registered member features available to you.


0) outputErrors($errorstring); ?>
First Name:
Last Name:
Country of Residence:
your Email Address:
Repeat your Email Address:
Choose a Password:
Repeat your Password:
Receive Stayaround Email Updates?> Yes   > No
>  I Agree, have read and understood the terms and conditions