Reply to Re: text is truncated

Your name:

Reply:


Posted by Geoff Berrow on 07/05/06 16:05

Message-ID: <A7Pqg.273829$8W1.180570@fe1.news.blueyonder.co.uk> from
Derek @ Blueyonder contained the following:

>You are correct, wrong HTML and the results will be unpredictable.
>
>Now that I understand what I was doing wrong I have applied the same process
>to a text area but this will not display any text at all, code below.
>
>echo ("<td colspan='2'><textarea name='extract' cols='100' rows='5' value='
>" . $myrow[3] . " '></textarea></td>");
>
>Are text areas treated in a different way?

Yes. The 'value' is whatever you put in between the tags
>
>Any finaly if I may checkboxes, can values be loaded into them in the same
>sort of way as you explained above? The code is
>
>echo ("<td width='427'><input type='checkbox' name='childhood' value=" .
>$myrow[27] ."></td>");
>
>The value being loaded in is either a 1 or 0. I would like it to place a
>tick in the checkbox if the value loaded is a 1.

To put tick in a checkbox you have to add the word 'checked'. You need
to write code to add this based on the value in your database. And
don't forget, checkboxes and radio buttons don't return a value unless
checked.
>
>As you have probably realised this is the first time since taking a basic
>PHP course that I have used PHP, on the course everything always works OK
>but this is real life!

Your PHP seems fine but your html sucks <g>.
--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

[Back to original 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

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