http://www.aoe2.com/!scripts/filesubmission/test.php
When I input text in that box with an apostrophe, it backslashes it. How do I fix that?
Thanks!
Backslashes in my text...
Moderator: General Moderators
Re: Backslashes in my text...
Hi,Jim wrote:http://www.aoe2.com/!scripts/filesubmission/test.php
When I input text in that box with an apostrophe, it backslashes it. How do I fix that?
Thanks!
This is happening because your have magic_quotes on. You could turn this off in the php.ini file, but that's not always optimum. Instead what you could do is use a little function that checks for the magic_quotes and removes them (or adds them, of course) as needs be. The function to check for magic_quotes if get_magic_quotes_gpc().
Such as:
Code: Select all
function stripGPC($foo)
{
if (!get_magic_quotes_gpc()) return $foo;
else return stripslashes($foo);
}http://andyc.users.phpclasses.org/brows ... e/1027.htm
Andy