Question:
How to email my html form upon submission?
Bill
2010-08-14 12:34:35 UTC
I made a form through dreamweaver cs5. I have the form already made, however, when someone presses the submit button, nothing happens. How can I make so when someone fills out the form and presses submit, the form results are automatically emailed to the email address of my choice?

I already made sure all my form elements are within the form div (the red dotted lines).

Thank you in advance for your help.
Six answers:
anonymous
2010-08-14 18:44:01 UTC
Recommended (if you can use PHP and SMTP):



Use a server-side script language if your web site allows it. Otherwise, you will have to use a client-side dependent "mailto:" action to get the form info sent to you.



Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol ) to work. Otherwise, no email can be sent.



PHP: Sending Email Tutorial (Text/HTML/Attachments): http://www.webcheatsheet.com/php/send_email_text_html_attachment.php



Use any of the below sites to make the workable form you need:



For making forms:



These are really good online form makers. Just follow the instructions for making it and uploading file(s).



Contact Form Generator: http://www.tele-pro.co.uk/scripts/contact_form/

WYSIWYG Form Maker: http://www.jotform.com/?gclid=CNKhqei1wJ4CFRQhnAod6laUqA

http://www.thesitewizard.com/wizards/feedbackform.shtml

Ajax - Creating an HTML Form: http://www.tizag.com/ajaxTutorial/ajaxform.php

http://www.phpform.org/



http://www.thepcmanwebsite.com/form_mail.shtml

http://emailmeform.com/

http://www.freecontactform.com/





Otherwise:



Basic Client-Side Mailto: Form:





: name


: email


comments













anonymous
2010-08-14 13:23:45 UTC
There are two ways of doing that:



A mailto: link. You can include the contents of the form's elements (textboxes, etc.) in the message. (This requires that the user has a default email program - webmail won't work - and it exposes your email address, which isn't smart.)



A php (or asp) page to do the actual emailing. You submit your form to that page.
?
2010-08-14 15:45:52 UTC
If you are feeling adventurous you could write your own form handling script that will take all of the data from your form and email it to you. For this you will need a webhost that supports server side scripting (such as PHP). You will also need access to an SMTP (outgoing email) server, probably provided by your web-host, but possibly elsewhere.



For advice, a sample form and a corresponding PHP form handling script see: http://www.html-tags-guide.com/email-form-html.html#sample .



A simpler alternative is to use an existing script - there are many available for free - see: http://www.html-tags-guide.com/email-form-html.html#free-forms



An even simpler alternative is to use hosted form handling scripts - there are also many available free - see: http://www.html-tags-guide.com/email-form-html.html#free-hosting
Jack
2010-08-14 13:18:22 UTC
You need some kind of form action script to "send " the email, and maybe a re-direct to another page after it is sent. In html it looks something like this;;




method=post>


Obviously you have to replace some stuff with your domain name etc., and set up a mailbox to receive the mail. Plus make sure of the name of the form mailing system in use on your host.

Then the re-direct;


value=http://www.yourdomain.com/submit.html name=redirect>

You'll also have to build a page called submit.html to send them to.

?
2010-08-15 01:08:19 UTC
Download the free script "Form to Email" from http://www.web2coders.com
anonymous
2016-09-14 08:18:11 UTC
That is unclear and there are actually more than one potential answers to this question..


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...