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


-----Original Message-----
From: Jon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 30, 2002 1:59 PM
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 (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to