RE: [PHP] '' and \" -> How do you avoid removing these?
| From: | Martin Towell | Date: | Wed, 30 Jan 2002 03:15:12 +0000 |
| Subject: | RE: [PHP] '' and \" -> How do you avoid removing these? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82659@lists.php.net to get a copy of this message | ||
there's a directive in the php.ini file, something like "magic_quotes" or
something (too lazy to look...), set that to 0 (zero) or use stripslashes()
(this might have an underscore in the name, again too lazy to check) on the
vars
Martin
-----Original Message-----
From: Jon [mailto:Jon@digital-explosion.co.uk]
Sent: Wednesday, January 30, 2002 1:59 PM
To: php-general@lists.php.net
Subject: [PHP] '' and \" -> How do you avoid removing these?
Okay, I'm trying to read in a form with " and ' in it. The problem is that
PHP automatically changes these to \" and \' without asking :( If I read in
a file with " or ' in, it's fine and outputting to the screen is no problem.
It's only when I read in from a form that a problem appears. All I want to
do is read from my form and write it into a normal text file. If anyone's
got any ideas how to solve this, feel free to mail me... Cheers!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net