473,325 Members | 2,671 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

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 1823
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

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

Similar topics

0
by: Daron S. Lowell | last post by:
I need to be able to obtain the dimensions of some graphics files. Most of what I have found in this group seems to indicate loading the files into a form, then obtaining the dimensions form a...
3
by: MissiMaths | last post by:
Does anyone know of a way to change the length and width of a form in code? Say if someone presses a button the form doubles in size to reveal a some text boxes. I just need the code for the size...
5
by: Paolo | last post by:
I need to create a button which changes the back colour and the font colour and type of several fiels in a form, This is the way I would normally do it: .Backcolor = 11112121 .tabstop = True...
6
by: John Ortt | last post by:
Hi there everyone, I have a part info form which has a faded image of our company logo as a background. I want to replace the faded image with a bright red warning image on items which have run...
0
by: huobazi | last post by:
I have many dropdownlist controls in my ascx (and use LoadControl in a aspx fiel) file,so i write a method "InitList(DropDownList list,string strsql,string TextField,string ValueField)" but when i...
7
by: Sakharam Phapale | last post by:
Hi All, How to preserve the old font properties while changing new one? I posted same question 2 months back, but I had very small time then. eg. "Shopping for" is a text in RichTextBox and...
2
by: almurph | last post by:
Hi, Hope you can help me wit this one. I have to open either a ".jpg", ".bmp" or a "gif" and alter its dimensions and save the output as a .gif. Here is my attempt - I would greatly...
6
by: Marcolino | last post by:
Hi all, I have a simple problem but I don't know which is the best way to solve it. I need to savo into a table into access DB the location and the size of a form. Is there a way to save...
5
renji1981
by: renji1981 | last post by:
Hello I need to implement a textbox or a fiels where i can insert text and add certain function that MS word supports like TEXT FORMATTION ( FONT , STYLE _ ETC IN A WINDOWS FORM USING c# . just...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.