Reply to Re: text box height issue

Your name:

Reply:


Posted by Dave M on 12/06/05 20:23

In article <dn4af9$sq9$2@nwrdmz01.dmz.ncs.ea.ibs-infra.bt.com>, Andrew @
Rockface says...
>
>mgraham81@verizon.net wrote:
>> I have created a text box that sis one line. I use the 'size=xxx' to
>> make it longer, buit i do not know how to make it taller to show more
>> than one line of characters. any help would be appreciated.
>
>Nothing to do with php but what you've described is an 'input' element
>with its type set to 'text'. The input element does not have a row or
>height attribute. What you need is the 'textarea' element (note the rows
>and cols attributes):
>
><textarea rows=20 cols=20>This is a text box</textarea>
>

Trying to relate to PHP : ) you could make the dimensions dynamic by making the
"rows" and "cols" variables. Such as...


<?php
//use some method to calculate these values
$rows = 20;
$cols = 80;
?>

<textarea rows="<?=$rows?>" cols="<?=$cols?>">This is a text box</textarea>


Dave
--
Newsguy.Com - 30 GB - $14.95 / month
http://newsguy.com/overview.htm

[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

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