You are here: Re: post data from a form and special character: " ' " and " / " « All PHP « IT news, forums, messages
Re: post data from a form and special character: " ' " and " / "

Posted by Hilarion on 10/10/52 11:25

> the new text entered! As usual. BUT, if I have insert for example a " ' "
> the field will be filled with " \' " ... IF " \ " then " \\ "
> If I submit the form again and there are some more errors... \\ becomes \\\
> and \\\\ and so on...


If you have magicquotes_gpc turned on (you have now), then all data
from $_GET, $_POST and $_COOKIE (and $_REQUEST) are escaped with
slashes. Turn off magicquotes_gpc (you'll have to add the slashes
when placing the data in SQL query) or use "stripslashes" on the
data from those superglobals.


Hilarion

 

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

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