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.
August 20th, 2010 on 9:30 pm
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:
<form method="post" action="mailto:someone@$nailmail.com" enctype="text/plain">
<input type="text" name="username"> : name <br>
<input type="text" name="email"> : email <br>
comments <br>
<textarea name="comments" rows="10" wrap="hard">
</textarea>
<input name="redirect" type="hidden" value="index.html">
<input name="NEXT_URL" type="hidden" value="index.html"><br>
<input type="submit" value="Send">
<input type="reset" value="Clear">
</form>
August 20th, 2010 on 9:30 pm
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;;
<FORM action=http://www.yourdomain.com/cgi-sys/FormMail.cgi
method=post><INPUT type=hidden value=AnEmailAddress@yourdomain.com
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;
<P align=center><INPUT id=Submit1028 type=submit value=Submit name=Submit1028> <INPUT type=hidden
value=http://www.yourdomain.com/submit.html name=redirect>
You’ll also have to build a page called submit.html to send them to.
August 20th, 2010 on 9:30 pm
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.
August 20th, 2010 on 9:30 pm
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
August 20th, 2010 on 9:30 pm
Download the free script "Form to Email" from http://www.web2coders.com