How to prevent single quotes and double quotes from escaping on the accept page under PHP
Author:Eve Cole
Update Time:2009-06-05 16:24:13
If you do not want the following situations to occur in your PHP page:
Single quotes are escaped as '
Double quotes are escaped as "
Then you can make the following settings to prevent:
Method 1: Set: magic_quotes_gpc = Off in PHP.ini
Method 2: $str=stripcslashes($str)