I have a recurring problem with making forms handled by PHP: the characters ' and " are always getting escaped with \.
This seems to happen even before the data gets to the PHP, in the $_POST array.
So when I insert ' " \ in the form, and print it staight away with the PHP, I get \' \" \\.
What is causing this, and what solution is there?
I have a recurring problem with making forms handled by PHP: the characters ‘
Share
You have
magic_quotesenabled on your server.See for yourself with
var_dump(get_magic_quotes_gpc()). If it prints1, they are enabled.Disable them and handle escaping yourself in the context of which it is required.