Reguser, Data Clensing and Guest log ins
Posted: Wed Mar 21, 2012 1:33 am
I'm redoing a bit the tutorials reguser.php. I'm just wondering if the following pretty much clenses the data thoroughly?
And I was wondering what's a good way to do guest log ins. I was thinking of having a count stored in the database and every time someone wants to play as a guest that count would be incremented and that number used on the end of 'guest' as the user name? Or should I use some sort of while loop to count the number of players with 'guest' in their name?
Code: Select all
$player=$_POST['player'];
$player=strip_tags($player);
$player=mysql_real_escape_string($player);
$password=$_POST['password'];
$password=strip_tags($password);
$password=mysql_real_escape_string($password);
$pass2=$_POST['pass2'];
$pass2=strip_tags($pass2);
$pass2=mysql_real_escape_string($pass2);
$email=$_POST['email'];
$email=strip_tags($email);
$email=mysql_real_escape_string($email);