OriginalSunny Posted April 16, 2006 Share Posted April 16, 2006 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. Quote Link to comment https://forums.phpfreaks.com/topic/7519-how-to-increase-size-of-box-for-information-in-a-form/ Share on other sites More sharing options...
AndyB Posted April 16, 2006 Share Posted April 16, 2006 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] Quote Link to comment https://forums.phpfreaks.com/topic/7519-how-to-increase-size-of-box-for-information-in-a-form/#findComment-27379 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.