19.05.2012, 21:39
Hi, for the username you could use PHP eregi... Like this..
if(eregi("^[a-z]*_[a-z]", $username)){ // The username is in first_last format } else { // Error }
and for sha1 it is just sha1($password);
if(eregi("^[a-z]*_[a-z]", $username)){ // The username is in first_last format } else { // Error }
and for sha1 it is just sha1($password);