MailForm
Moderator: Brad Walker
MailForm
Please can you give me some tips on how to set up a mailform on my website.
Any help or advice would be gratefully appreciated, thanks in advance.
Any help or advice would be gratefully appreciated, thanks in advance.
It ain't where you're from, it's where you're at!
You could paste the following code into one of your Web pages:
<form enctype="text/plain" method="get" action="mailto:YOU@YOURDOMAIN.COM">
<p>Your name<br /><input name="name" type="text" id="name" size="30" /></p>
<p>e-mail address<br /><input name="email" type="text" id="email" size="30" /></p>
<p>message<br /><textarea name="message" cols="45" rows="10" wrap="virtual"></textarea></p>
<p><input type="submit" name="Submit" value="Send your message" /></p>
</form>
But that might not be what you want your form to do. Post some details or search Google for "html form" and you'll find several tutorials.
<form enctype="text/plain" method="get" action="mailto:YOU@YOURDOMAIN.COM">
<p>Your name<br /><input name="name" type="text" id="name" size="30" /></p>
<p>e-mail address<br /><input name="email" type="text" id="email" size="30" /></p>
<p>message<br /><textarea name="message" cols="45" rows="10" wrap="virtual"></textarea></p>
<p><input type="submit" name="Submit" value="Send your message" /></p>
</form>
But that might not be what you want your form to do. Post some details or search Google for "html form" and you'll find several tutorials.
-
- Posts: 353
- Joined: Mon Mar 10, 2003 5:25 pm
- Location: UK
- Contact:
Re: MailForm
Test what U doPaul Stevenson wrote:Please can you give me some tips on how to set up a mailform on my website.
Any help or advice would be gratefully appreciated, thanks in advance.
On our page we found that U could not put in long phone numbers or something
Brian B

Yo Brian thanks.
Takes a lot of studying; I can walk AND chew gum but this mailform thing's got me.
I'll see what I can download and put the results here for archiving just in case anyone needs it later.
Hopefully JAVA but that is rocket science to me. If I get it going I'll call it Stevensons rocket mailformer!
Thanks again for your help.
Takes a lot of studying; I can walk AND chew gum but this mailform thing's got me.
I'll see what I can download and put the results here for archiving just in case anyone needs it later.
Hopefully JAVA but that is rocket science to me. If I get it going I'll call it Stevensons rocket mailformer!
Thanks again for your help.
It ain't where you're from, it's where you're at!
Did that and the best I could find atBrian wrote: But that might not be what you want your form to do. Post some details or search Google for "html form" and you'll find several tutorials.
http://www.w3schools.com/html/html_forms.asp
is;
<html>
<body>
<form action="MAILTO:someone@w3schools.com" method="post" enctype="text/plain">
<h3>This form sends an e-mail to W3Schools.</h3>
Name:<br>
<input type="text" name="name"
value="yourname" size="20">
<br>
Mail:<br>
<input type="text" name="mail"
value="yourmail" size="20">
<br>
Comment:<br>
<input type="text" name="comment"
value="yourcomment" size="40">
<br><br>
<input type="submit" value="Send">
<input type="reset" value="Reset">
</form>
</body>
</html>
It ain't where you're from, it's where you're at!
That's a fine example. Also see:Did that and the best I could find at
http://www.w3schools.com/html/html_forms.asp
is... etc ... etc...
http://www.htmlgoodies.com/tutors/fm.html
You also might try contacting your Web hosting company. They may have form scripts available for use. The scripts might even take advantage of features other than straight HTML (e.g., perl or php scripting).
And you also could try posting your query to a forum about HTML. If you do so, I expect people will want the URL to your Web site and want to know what you want the form to accomplish.
Is it just to allow people to e-mail you? Is it to allow people to fill out a questionnaire or order products? All require different form elements.
-
- Posts: 48
- Joined: Mon Mar 10, 2003 2:02 pm
- Location: N. CA
- Contact:
That requires a hair more than HTML. You can do it with JavaScript, and most browsers will handle it properly. Search for JavaScript forms to handle comments on Web sites, that sort of thing. There's some code on WebMonkey.com, the site referenced in another post.Just need to figure out a confirmation reply or a redirect to say 'thank you for your enquiry' page.
If your Web host provides perl or php or some other server-side scripting language, then you can use that to handle the redirect and other features. There are several very good comment form scripts floating around the Web for each of these.