You are here: Re: text is truncated « PHP Programming Language « IT news, forums, messages
Re: text is truncated

Posted by Derek @ Blueyonder on 07/04/06 14:06

>>>>If I display $myrow[2] all of the text is there, if I use the following
>>>>code
>>>>only the first word is show The same happens if I simply use $myrow[2]
>>>>and
>>>>replace the $title altogether.
>>>>
>>>>How do I get it to show all of the text please?
>>>
>>> Does the entry contain quote marks?

>> No
>
>
> Try like this:
> <input name='title' type='text' size='100' value='" . $title . "'/>
>
> The entire title is printed to the field if you view the source code*, but
> in html code all literal attributes must be delimited with quote marks. If
> not, only the first word is used.
>
>
> *) ALWAYS view the source code to see what is actually printed, the
> html-representation might not be accurate, like in this case. It turns out
> you're dealing with html problem, not php.
>
> --
> "ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
> spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
>

Hi

Good one, that is working fine. And yes checking the source html it was
different to what was shown on the screen. Very strange.

Many thanks

Derek

 

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

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