automatically performs addslashes() - Magic Quotes

by rajesh 2009-10-29 14:34:31

If you want the add slashes operation to be performed on every form data submitted with out explicitly calling addslashes, just enable Magic Quotes in php.ini

PHP has this provision called as Magic Quotes. You can enable it by editing the php.ini file and setting the value of magic_quotes_gpc as on
set magic_quotes_gpc = on


After magic quotes is enabled [\] will be placed before every ['], ["], [\], or null on every user submitted data.

For example
<i style=color:green;>It's Yours</i> will automatically be converted to <i style=color:green;>It\'s Yours</i> even before you use $_GET or $_POST

Tagged in:

769
like
0
dislike
0
mail
flag

You must LOGIN to add comments