automatically performs addslashes() - Magic Quotes - PHP Views : 397
Tagged in : PHP
0 0
Send mail
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
By rajesh, On - 2009-10-29



    Login to add Comments .