Page 1 of 1
MailForm
Posted: Mon Dec 15, 2003 3:47 pm
by PaulS
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.
Posted: Mon Dec 15, 2003 3:54 pm
by Brian
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.
Posted: Tue Dec 16, 2003 5:02 am
by PaulS
Thanks Brian, I appreciate your help.
Re: MailForm
Posted: Tue Dec 16, 2003 6:13 am
by Brian and Jenny Blanthorn
Paul 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.
Test what U do
On our page we found that U could not put in long phone numbers or something
Brian B
Posted: Tue Dec 16, 2003 6:27 am
by PaulS
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.
Posted: Tue Dec 16, 2003 4:53 pm
by PaulS
Brian 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.
Did that and the best I could find at
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>
Posted: Tue Dec 16, 2003 5:41 pm
by Brian
That's a fine example. Also see:
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.
Posted: Tue Dec 16, 2003 6:50 pm
by PaulS
Thanks for your help Brian, I've got an enquiry form up and running now. So viewers can ask for more info about, &c.
Just need to figure out a confirmation reply or a redirect to say 'thank you for your enquiry' page.
Thanks again.
Posted: Tue Dec 16, 2003 8:45 pm
by sadiesjewels
Web monkey always has great tutorials ... I'm pretty sure they have one that covers forms ... in fact I know they do, and they're very comprehensive and most importantly free!
sadie
Posted: Tue Dec 16, 2003 10:20 pm
by Brian
Just need to figure out a confirmation reply or a redirect to say 'thank you for your enquiry' page.
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.
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.