Welcome to Dream.In.Code
Become an Expert!

Join 149,724 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,319 people online right now. Registration is fast and FREE... Join Now!




Resizing Imput Fields?

 
Reply to this topicStart new topic

Resizing Imput Fields?, How?

Sneblot
12 Feb, 2007 - 05:09 AM
Post #1

D.I.C Head
**

Joined: 9 Feb, 2007
Posts: 245


My Contributions
I have created a contact form but my comment input field is only one line high how do I change its height but not its length?

My Code

CODE
<form action="MAILTO:sneblot@hotmail.com" method="post" enctype="text/plain">
<h3>Please feel free to contact me</h3>
Name:<br>
<input type="text" name="name"
value="Your Name" onclick="this.value=''" onblur="if(this.value==''){this.value='Your Name'}" size="20">
<br>
Email:<br>
<input type="text" name="mail"
value="Your Email" onclick="this.value=''" onblur="if(this.value==''){this.value='Your Email'}" size="20">
<br>
Comment:<br>
<input type="text" name="comment"
value="Question or comment" onclick="this.value=''" onblur="if(this.value==''){this.value='Question or Comment'}"size="50">
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">

</form>

User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Resizing Imput Fields?
12 Feb, 2007 - 07:11 AM
Post #2

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,350



Thanked: 51 times
Dream Kudos: 25
My Contributions
I'm not sure that the input tag can span multiple rows. Perhaps you can use a textarea instead, and size it the way you want?
User is online!Profile CardPM
+Quote Post

Sneblot
RE: Resizing Imput Fields?
12 Feb, 2007 - 03:40 PM
Post #3

D.I.C Head
**

Joined: 9 Feb, 2007
Posts: 245


My Contributions
QUOTE(Amadeus @ 12 Feb, 2007 - 08:11 AM) *

I'm not sure that the input tag can span multiple rows. Perhaps you can use a textarea instead, and size it the way you want?


Would a text box be able to do the same fuction as the input box? Will the contact form still work?

User is offlineProfile CardPM
+Quote Post

Amadeus
RE: Resizing Imput Fields?
12 Feb, 2007 - 06:49 PM
Post #4

g++ -o drink whiskey.cpp
Group Icon

Joined: 12 Jul, 2002
Posts: 12,350



Thanked: 51 times
Dream Kudos: 25
My Contributions
Some of the attributes are different, but if you're asking if you can retrieve data from a textarea by using a GET or POST method, then yes, the functionality is the same.
User is online!Profile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/8/09 05:03AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month