Forum Moderators: coopster
Email: if(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$",
$email ) ){
Username Name:
if (!eregi("^[a-z0-9_-]{2,15}$",$name)
I'm not sure what to allow for passwords through, what is common?
Also is it safe to assume a md5 of a password will be a-z , A-Z, 0-9?
Right now I am creating a random md5'ed string that is stored in the user file. A cookie is stored on the users pc with their username and that random string in order to keep them logged in, once they initally login.
The output of an md5 hash is always a-f 0-9 (hex-like characters).