MailForm

The forum for discussion on business aspects of working with glass.

Moderator: Brad Walker

Post Reply
PaulS
Posts: 155
Joined: Mon Mar 10, 2003 6:45 pm
Location: Belize
Contact:

MailForm

Post 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.
It ain't where you're from, it's where you're at!
Brian
Posts: 9
Joined: Wed Apr 09, 2003 12:42 pm
Location: Washington, DC
Contact:

Post 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.
PaulS
Posts: 155
Joined: Mon Mar 10, 2003 6:45 pm
Location: Belize
Contact:

Post by PaulS »

Thanks Brian, I appreciate your help.
It ain't where you're from, it's where you're at!
Brian and Jenny Blanthorn
Posts: 353
Joined: Mon Mar 10, 2003 5:25 pm
Location: UK
Contact:

Re: MailForm

Post 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
Image
PaulS
Posts: 155
Joined: Mon Mar 10, 2003 6:45 pm
Location: Belize
Contact:

Post 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.
It ain't where you're from, it's where you're at!
PaulS
Posts: 155
Joined: Mon Mar 10, 2003 6:45 pm
Location: Belize
Contact:

Post 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>
It ain't where you're from, it's where you're at!
Brian
Posts: 9
Joined: Wed Apr 09, 2003 12:42 pm
Location: Washington, DC
Contact:

Post by Brian »

Did that and the best I could find at
http://www.w3schools.com/html/html_forms.asp
is... etc ... etc...
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.
PaulS
Posts: 155
Joined: Mon Mar 10, 2003 6:45 pm
Location: Belize
Contact:

Post 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.
It ain't where you're from, it's where you're at!
sadiesjewels
Posts: 48
Joined: Mon Mar 10, 2003 2:02 pm
Location: N. CA
Contact:

Post 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
Brian
Posts: 9
Joined: Wed Apr 09, 2003 12:42 pm
Location: Washington, DC
Contact:

Post 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.
Post Reply