Mailing List [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 2:18 AM
Subject: [PHP] Why do form submissions need stripslashes() invocations?
Hello,
I would like to know why PHP adds slashes to the double quote,
single quote, and backslash characters when submitting a form.
In particular
I would like to know why PHP adds slashes to the double quote,
single quote, and backslash characters when submitting a form.
In particular it would be nice if the PHP manual or some other
manual mentioned this but I could not find any official
documentation on this issue. Why does PHP add
Hi Rasmus!
Thanks for your explanation. Unfortunately I am using a server on which I
do not have write access to php.ini. I have also been noticing that
a submitted \ is received as when I use stripslashes() thus
stripslashes() is not a totally safe alternative. Is there a
way that I can
Like all other PHP config directives you can set it in your .htaccess file
using:
php_value magic_quotes_gpc off
And you are wrong on the \ part. If magic_quotes_gpc is on and you
submit a string that contains \ then it will be escaped to \\\ and a
StripSlashes() will turn it back into \
Like all other PHP config directives you can set it in your
.htaccess file using:
php_value magic_quotes_gpc off
And you are wrong on the \ part. If magic_quotes_gpc is on and you
submit a string that contains \ then it will be escaped to \\\ and a
StripSlashes() will turn it back
On Sun, 9 Sep 2001, Rasmus Lerdorf wrote:
Like all other PHP config directives you can set it in your .htaccess file
using:
php_value magic_quotes_gpc off
Thank you so much for pointing yet another useful piece of information.
Sorry to bother you with one last question but while I run
So sprach »Neil Zanella« am 2001-09-09 um 23:20:12 -0230 :
Hi Rasmus!
Thanks for your explanation. Unfortunately I am using a server on which I
do not have write access to php.ini. I have also been noticing that
No need to; if you're allowed to, you can create a .htaccess.
a submitted \
7 matches
Mail list logo