Oops!

Please complete the following fields:

"; if ($username == ""): echo "Please choose a username:
"; else: echo ""; endif; if ($email == ""): echo "Please enter your email address:

"; else: echo ""; endif; if (!$mailok): echo "Please enter a valid email address:

"; else: echo ""; endif; echo "

"; else: $username_check = "$username"; $username_check = ereg_replace("\"","",$username_check); $username_check = ereg_replace("\"","",$username_check); $username_check = ereg_replace("\*","",$username_check); $username_check = ereg_replace(" ","",$username_check); if (file_exists("users/$username.php") || $username_check != "$username"): echo "Oops!
"; if (file_exists("users/$username.php")): echo "
I'm sorry, that user name is already taken.
Please choose another one."; endif; if ($username_check != "$username"): echo "
I'm sorry, the username you have chosen contains characters you cannot use.
Please do not include spaces, double quotes or stars."; endif; echo "

"; echo "

"; else: $passwd = date("sh"); $passwd1 = "$passwd"; $passwd = crypt($passwd, "salt"); if ($url == "http://"): $url = ""; endif; $fileMessage = ""; $cartFile = fopen("users/$username.php","w+"); fputs($cartFile,$fileMessage); fclose($cartFile); $from = "$title <$fromemail>"; $subject = "Your Chat Forum Access Details"; $body = "Your access details are as follows: User: $username Pass: $passwd1 We recommend that you go to $myurl, select \"Edit Profile\" and change your password. Please retain this email for your future reference. "; $to = "$email"; mail($to,$subject,$body,"FROM: ".$from); echo "
Success!

Your chosen name was successfully registered and your password has been emailed to

$email.

Please check your email and then login here.




"; endif; endif; else: echo "

To use the $title you must first register.

Registration

Please choose a username (no spaces allowed):

Please enter your email address:

Once you have completed registration your password to access the Chat Forum will be emailed to you.

Additional Profile Info

Name :
Age:
Sex: Male Female
Email:
City:
Country:
Web Site URL:

About Yourself:

"; endif; ?>