Re: [Q] double quote(") is auto-transformed into (\")!
| From: | David Robley | Date: | Tue, 20 Mar 2001 02:41:35 +0000 |
| Subject: | Re: [Q] double quote(") is auto-transformed into (\")! | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-44672@lists.php.net to get a copy of this message | ||
On Tue, 20 Mar 2001 13:03, Chung Ha-Nyung wrote:
> I found that when I pass the double quote(") through get(or post)
> method, it is transformed into slash + double quote (\").
> Although it seems useful in making SQL query, it's really annoying
> whenever I pass the value to the other php page through get/post again.
>
> Can I turn off this feature?
Yes, but you risk unexpected results by not escaping. It is controlled by
the value of magic_quotes_gpc in yor php.ini file.
Consider instead using stripslashes to remove the slashes before display.
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA