Jump to content


determine textarea rows

  • Please log in to reply
2 replies to this topic

#1 vietboy505

  • Members
  • PipPip
  • Member
  • 16 posts

Posted 24 March 2006 - 04:53 AM

I want my textarea box to not to have scrollbars. So depends on how long the message is, it will determine the rows. How would I do that, count the character in $message?

<textarea value="<?php echo $message; ?>" rows="<?php ?>" cols="20">

#2 shocker-z

  • Members
  • PipPipPip
  • Advanced Member
  • 864 posts
  • LocationNottingham

Posted 24 March 2006 - 10:20 AM

dont think this is the best way but you could do:


and the user rows="<?php echo $lines; ?>"

as far as i can think that should work but only work by line not for long lines which will then be wrapped..
www: www.ukchat.ws | irc: irc.ukchat.ws chan: #blufudge

#3 keeB

  • Staff Alumni
  • Advanced Member
  • 1,078 posts
  • LocationCalifornia

Posted 24 March 2006 - 05:44 PM

Whats the point of using a textarea if you don't want to conserve space and use scrollbars? Doesn't make much sense..

Come visit my site to see my latest projects

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users