Jump to content

determine textarea rows


vietboy505

Recommended Posts

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

[code]
$msg=explode("\n",$message");
$lines=count($msg);

and the user rows="<?php echo $lines; ?>"
[/code]

as far as i can think that should work but only work by line not for long lines which will then be wrapped..
Link to comment
https://forums.phpfreaks.com/topic/5660-determine-textarea-rows/#findComment-20211
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.