By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,866 Members | 2,039 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,866 IT Pros & Developers. It's quick & easy.

Changing text fiels dimensions in a form

P: 3
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
Share this Question
Share on Google+
3 Replies


KevinADC
Expert 2.5K+
P: 4,059
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

Expert 100+
P: 1,892
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
Expert 2.5K+
P: 4,059
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.