You are here: Re: everything after ' character is not displayed « PHP Programming Language « IT news, forums, messages
Re: everything after ' character is not displayed

Posted by Rik on 10/13/06 12:32

mantrid wrote:
> but input type (below) cuts everything off after the ' character.
> However this does not happen with other characters such as " or /
> <input type='text' class='BodyText' style='WIDTH: 85%' name='test'
> value='<?php echo $opta; ?>'>
>
> can anyone explain this behaviour and have a solution so that text
> with any ' characters in it is fully displayed?

Which is exactly as is should be. The ' in the text means it's the end of
the value. I't invalid HTML, and most browsers will handle the 'extra'
attributes (that's what it is after the ') by discarding it.

htmlspecialchars() or htmlentities() your $opta.

Grtz,
--
Rik Wasmus

 

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

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