Forum Moderators: open

Message Too Old, No Replies

Getting form results by email using dreamweaver?

         

StockportPaul

4:18 pm on Jan 12, 2005 (gmt 0)

10+ Year Member



How do I get form results by email using dreamweaver without using mailto? I have looked around but nothing is in plain english

DerekH

8:43 pm on Jan 12, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What you are looking for is a CGI script like FormMail that you invoke from the Dreamweaver form.

Are you on an ISP where they provide such things?
If you are, seek out their help and see how to invoke it.

If you are on an ISP where you have your own CGI-BIN directory, seek out London Perl Mongers FormMail and install that.

It'll do what you want, I'm sure
DerekH

kiwibrit

12:20 am on Jan 16, 2005 (gmt 0)

10+ Year Member



Assuming your web host runs php 4.1 or higher, then the the feedback form wizard at thesitewizard.com is a pretty good place to start. The php file is part of your site, but you will have to edit the form in text. It handles the posting of your form server side.
The form itself is a Dreamweaver file.

mastervisa

7:33 pm on Jan 16, 2005 (gmt 0)

10+ Year Member



I get form results by email using dreamweaver 4.0. I make the form using the objects window. When you have a page open in Dreamweaver, click on the objects window to change from "character" to "forms". Insert check boxs, radio buttons, etc. Assign each one a value, a name, then put the value names in order in the below html where you see value1,value2. Don't forget to use the object window at the end of your page and click on "Insert Button" That adds the "submit" button. Do it again and change the values to "Reset" for a reset button.
Then Change the email addresses below to real ones and change the urls to real ones, yours.
Copy and paste the html below, somewhere at the top in your html body. (These are hidden tags not seen on the page.) The results of the form are sent to the formmail.pl script in your cgi-sys/ bin. Most hosting companies provide that script for this use. Or you can find formmail.pl and put it in your cgi bin yourself. Had to do that before.

<FORM METHOD="POST" ACTION="/cgi-sys/formmail.pl" name="">
<input type="hidden" name="recipient" value="EmailAddress@WhereFormGetsEmailedTo.com">
<input type="hidden" name="subject" value="Name of Your Widget Form">
<INPUT TYPE="hidden" NAME="redirect" VALUE="http://UrlSentToAfterFormIsSubmitted.com/thankyou.html">
<INPUT TYPE="hidden" NAME="sort" VALUE="order:value1,value2,value3,value4,value5">

These next lines should be automatically added when you added the submit and reset buttons at the end of your form. I have included them anyway because thats what makes the form get submitted.

<input type="submit" name="Submit"
value="Submit">
<input type="reset" value="Reset" name="reset">

Hope this helps you or someone. That's how I do it anyway. mastervisa

voices

6:04 pm on Feb 2, 2005 (gmt 0)

10+ Year Member



Many ISP's no longer allow the use of formmail due to security issues. Do a search for NMS formail.