Re: Re: Select and $_POST
| From: | Chris Shiflett | Date: | Thu, 10 Nov 2005 15:57:57 +0000 |
| Subject: | Re: Re: Select and $_POST | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-225528@lists.php.net to get a copy of this message | ||
M wrote:
$clean['pass'] = md5((ini_get('magic_quotes_gpc') ? stripslashes($_POST['pass']) : $_POST['pass'])); or users with quotes in their password won't be able to log in.This is best handled in one place, so that it's easier to maintain and less likely to be overlooked. In the examples provided, $_POST['pass'] is the password provided by the user. Chris -- Chris Shiflett Brain Bulb, The PHP Consultancy http://brainbulb.com/