Jump to content

Archived

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

OriginalSunny

How to increase size of box for information in a form

Recommended Posts

Hi,
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:

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

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).
Thanks.

Share this post


Link to post
Share on other sites
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:
[code]
<textarea name="something" rows="3" cols="30"><?php echo $something; ?></textarea>
[/code]

Share this post


Link to post
Share on other sites

×

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.