You are here: Re: escape characters added to form data « PHP Programming Language « IT news, forums, messages
Re: escape characters added to form data

Posted by Mazin07 on 10/25/34 11:27

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация