Menu

Phoenix Script / News: Recent posts

Simple Registration System Added

Added Registration System , and checking users input for username , password , email using mysql_real_escape_string , addcslashe , and pcre

Reg Exp for username and password :
/^([a-zA-Z0-9-_ ]{5,30})$/

Reg Exp For Email :
/^([a-zA-Z0-9-_.]{3,})(@)([a-zA-Z0-9-.]{3,})(\.)([a-zA-Z]{2,4})$/

Update : added Checking if Username already exist
Update : added a special key to the registration form and check for it using SESSION

Posted by Samer Moustafa 2010-08-06
MongoDB Logo MongoDB