PHP Registration form

Associate
Joined
26 Jun 2003
Posts
1,140
Location
North West
I have a form with the fields:

username
password
password2
email

Is the best way to clean the user input this way? Or have a missed something?

PHP:
	foreach ($_POST as $value)
		$value = strip_tags(mysql_real_escape_string($value));
 
Back
Top Bottom