Re: Re: ' (Single Quotes) in user inputs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jerry Swanson wrote:
I'm not sure that stripslashes() are used for input.

If you want to redisplay the input, then it would be used.

addslashes() - to insert data into database
stripslashes() - to get data from database and print it.

You don't need stripslashes when pulling data unless you have magic_quotes_runtime enabled. If you find that you need to call stripslashes on your data, then you're escaping it twice before you insert it.


--

---John Holmes...

Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

php|architect: The Magazine for PHP Professionals – www.phparch.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux