You are here: Re: Input text issues « PHP Programming Language « IT news, forums, messages
Re: Input text issues

Posted by Nancy on 02/28/06 01:31

Andy Hassall has a better answer under the previous post "Weird: Slashes
getting added"
"Nancy" <no@email.due.to.spam.com> wrote in message
news:AVLMf.4532$S25.1853@newsread1.news.atl.earthlink.net...
>I believe php is 'escaping' these characters so they will not be parsed as
>code.
>
> see http://us3.php.net/manual/en/function.stripslashes.php
>
> hth
> nan
>
> "Pol" <Pol@nospam.com> wrote in message
> news:1206v631dfmpp29@news.supernews.com...
>> Whenever I receive input from an HTML text field or and HTML text area
>> with " or ' meaning double or singe quotes into a php variable and then
>> print or echo it back out to the user in html I get these characters
>> accompanies by a \ . Why is this and how can I get rid of it.
>>
>>
>> $submitform->body=@$_POST['body']; <<<< there are no \ in the input.
>>
>> print("body - ".$submitform->body."<br>"); <<<< but here there will be
>> slashes for all ' or " .
>>
>> Thanks for any help!
>
>

 

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

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