RE: [PHP] ' --> \\\' Question

From: Date: Thu, 11 Oct 2001 16:13:02 +0000
Subject: RE: [PHP] ' --> \\\' Question
Groups: php.general 
Request: Send a blank email to php-general+get-70824@lists.php.net to get a copy of this message
> I have a form that submits some values to a PHP script. > If there is an error with the input data the script sends the > data back > to the form so the user can fix the info. > > If I have a ' in the txt like "ber'ber", the returned string is > "ber\\\'ber" and if I submit again I get > "ber\\\\\\\\\\\\\\\'ber". This is because magic_quotes_gpc is set to "on" in php.ini. Either turn this off or do a stripslashes() before re-displaying the data. Kirk

« previous php.general (#70824) next »