468,316 Members | 1,925 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,316 developers. It's quick & easy.

Changing text fiels dimensions in a form

I am working on creating a form for potential clients to email me their name, email address and a comment about how I can be of service to them. I have the form basically completed, but I am running into problems trying to change the size of the text field for the actual message. I know you can use size to change how long it is, but I want to turn it into a fairly normal size message window. Anyway, here's the HTML coding I've used, so if there are any glaring issues you see that I've missed, please point them out...

"<form action="MAILTO:myemailhere@myisp.net" method="post" enctype="text/plain">
Your Name<br />
<input type="text" name="name" size="20" />
<br />
Your E-mail Address<br />
<input type="text" name="mail" size="27" />
<br />
Message<br />
<input type="text" name="message" height="150px" width="350px"/>
<br />
<br />
<input type="submit" value="Send" />
<input type="reset" value="Reset" />
</form>"
Apr 5 '07 #1
3 1578
KevinADC
4,059 Expert 2GB
You are going to get so much spam after the bots index your page and pull out that email address that you may not be able to find the few legitimate emails people send you. Anyway, you probably want to use a textarea tag for the message part, not a text tag:

Expand|Select|Wrap|Line Numbers
  1. <input type="textarea" name="message" cols="50" rows="20"/>
you can play around with the rows and cols or use CSS to set the size of the message box.
Apr 5 '07 #2
AricC
1,892 Expert 1GB
I am working on creating a form for potential clients to email me their name, email address and a comment about how I can be of service to them. I have the form basically completed, but I am running into problems trying to change the size of the text field for the actual message. I know you can use size to change how long it is, but I want to turn it into a fairly normal size message window. Anyway, here's the HTML coding I've used, so if there are any glaring issues you see that I've missed, please point them out...

"<form action="MAILTO:myemailhere@myisp.net" method="post" enctype="text/plain">
Your Name<br />
<input type="text" name="name" size="20" />
<br />
Your E-mail Address<br />
<input type="text" name="mail" size="27" />
<br />
Message<br />
<input type="text" name="message" height="150px" width="350px"/>
<br />
<br />
<input type="submit" value="Send" />
<input type="reset" value="Reset" />
</form>"
AtomD21,
You should look for a server side script to do this for you as Kevin alluded you will basically be showing your email address to anyone/spider who visits your page and like he said once that happens you can expect the spam to start. Do a google search for a form emailer you'll find tons of them.
Apr 6 '07 #3
KevinADC
4,059 Expert 2GB
AtomD21,
You should look for a server side script to do this for you as Kevin alluded you will basically be showing your email address to anyone/spider who visits your page and like he said once that happens you can expect the spam to start. Do a google search for a form emailer you'll find tons of them.

Ditto AricC.
Apr 6 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by Daron S. Lowell | last post: by
3 posts views Thread by MissiMaths | last post: by
5 posts views Thread by Paolo | last post: by
renji1981
5 posts views Thread by renji1981 | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.