Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-10 Thread nayco
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 it would be nice if the PHP manual or s

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Alexander Skwar
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 submit

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Neil Zanella
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 A

RE: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Jason Murray
> 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 i

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Rasmus Lerdorf
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 \" -

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Neil Zanella
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 achi

Re: [PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Rasmus Lerdorf
> 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 a

[PHP] Why do form submissions need stripslashes() invocations?

2001-09-09 Thread Neil Zanella
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 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 ad