You are here: Re: [PHP] addslashes/stripslashes issue « PHP « IT news, forums, messages
Re: [PHP] addslashes/stripslashes issue

Posted by Rasmus Lerdorf on 05/27/05 19:42

JM wrote:
> Hi all,
> Ok here is what I need help with:
>
> $var = "i like fi'sh";
>
> I'm able to addslashes(gather the data from a form), submit into the
> database, stripslashes(retrieve it).
>
> My problem is when I display it in a input type=text form the single
> quote is causing a truncation.
>
> <input type="text" value="{$var}">
> will display as:
> i like fi
> in the text form...
>
> Any help?

Which browser is doing that? If you really have double-quotes around
the value then single quotes inside shouldn't truncate anything.

eg.

http://lerdorf.com/test.html

Do you see the single quote there?

-Rasmus

 

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

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