You are here: Re: [PHP] Re: Select and $_POST « PHP « IT news, forums, messages
Re: [PHP] Re: Select and $_POST

Posted by Chris Shiflett on 11/10/05 17:57

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/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация