Re: escape characters added to form data
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: escape characters added to form data

From: Mazin07 <mazin07@gmail.com>
Date: Sat Sep 24 2005 - 00:45:34 CEST

O'Hara wrote:
> O'Hara wrote:
>
>
>>Hi,
>>Some characters entered in the text fields of a form get an escape
>>character. What is the reason? How can I prevent/remove this?
>>
>
>
> Problem solved.
> I needed to turn off magic_quotes_gpc in /etc/php.ini
>
> magic_quotes_gpc = Off
>
> Sorry if this was a VFAQ.
> As for the usefulness of these magic quotes...
>

In addition, there's a function specifically for slashes:

StripSlashes( string str )
AddSlashes( string str )

Will add/remove the escape slashes
Received on Tue Oct 18 02:27:26 2005