|
Posted by Kimmo Laine on 07/05/06 06:49
"Derek @ Blueyonder" <derekblakeyNOSPAM@NOSPAMblueyonder.co.uk> wrote in
message news:eBuqg.30261$181.10289@fe3.news.blueyonder.co.uk...
>
>>>>>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.
>>
>
> 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.
What's strange about browser not being able to display incorrect html? If
the code is corrupted like in this case it was, no wonder the browser cannot
correctly display it. That's why you should always alwasy make sure the html
your script produces is accurate, to make sure it's displayed correctly.
--
"ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
Navigation:
[Reply to this message]
|