Jump to content


How to increase size of box for information in a form

  • Please log in to reply
1 reply to this topic

#1 OriginalSunny

  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts

Posted 16 April 2006 - 01:48 AM

Just creating a few forms for users to be able to fill out on my webpage. I am using the code below to create boxes users can fill out:

<tr><td align="right"><b>Message</b>
<td><input type="text" name="message"
value="<?php echo @$message ?>"
size="50" maxlength="50"></tr>

Its in my .inc file which is then posted to the .php file. The thing i want to know is how you make the box bigger in terms of depth (currently they are like the topic title box when you fill out a new topic on this website. I want them to be larger so they are more like the actually message box when you fill out a new topic on this website).

#2 AndyB

  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 16 April 2006 - 02:28 AM

It's an html question. Use textarea, not text, as the input type. Adjust the number of rows and number of columns (horizontal size) to suit. For example:
<textarea name="something" rows="3" cols="30"><?php echo $something; ?></textarea>

Legend has it that reading the manual never killed anyone.
My site

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users