Help with PHP
#2

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);
Reply


Messages In This Thread
Help with PHP - by Riddy - 19.05.2012, 21:29
Re: Help with PHP - by TheJayMan - 19.05.2012, 21:39
Re: Help with PHP - by Riddy - 19.05.2012, 21:46
Re: Help with PHP - by kikito - 19.05.2012, 21:49
Re: Help with PHP - by Riddy - 19.05.2012, 22:09
Re: Help with PHP - by Vince - 19.05.2012, 22:10
Re: Help with PHP - by Riddy - 19.05.2012, 22:14
Re: Help with PHP - by kikito - 19.05.2012, 22:18
Re: Help with PHP - by TheJayMan - 19.05.2012, 22:23
Re: Help with PHP - by Ricop522 - 19.05.2012, 22:34

Forum Jump:


Users browsing this thread: 8 Guest(s)