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

From: Date: Mon, 10 Sep 2001 01:58:18 +0000
Subject: RE: [PHP] Why do form submissions need stripslashes() invocations ?
Groups: php.general 
Request: Send a blank email to php-general+get-66645@lists.php.net to get a copy of this message
> 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 \" Additionally, you can write code that will work under either situation by querying get_magic_quotes_gpc and get_magic_quotes_runtime to see which are in effect at any given time. Jason -- Jason Murray jasonm@melbourneit.com.au Web Developer, Melbourne IT "Work now, freak later!"

« previous php.general (#66645) next »