Re: '' and \" -> How do you avoid removing these?
| From: | Jason G. | Date: | Wed, 30 Jan 2002 06:32:49 +0000 |
| Subject: | Re: '' and \" -> How do you avoid removing these? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82684@lists.php.net to get a copy of this message | ||
Set this:
magic_quotes_gpc=0
in your php.ini
or use stripslashes on all your data.
-Jason Garber
IonZOft.com
At 02:58 AM 1/30/2002 +0000, Jon wrote:
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