Getting Visitor Feedback, Part 1: How to Have Data from Forms Emailed to You

If you want feedback from visitors to your Web pages, but you don't have the resources to develop scripts for processing the data from online forms, you can have all input to your form emailed to you. Here's how:

  1. Create the form that you need. To learn how, refer to the other tutorials in the Forms section of the Web Site Workshop.

  2. Use METHOD="POST". Within your <FORM> tags, you should set the <METHOD> to "POST" (see the examples below).

  3. Use a mailto script. The <ACTION> of the <FORM> tag should be set to one of two EarthLink URLs. Use http://home.earthlink.net/cgi-bin/mailto if you want to know what kind of computer the person who is responding is using to be sent back to you in addition to the data requested in your form. This is known as the mailto script:

    <FORM METHOD="POST" ACTION="http://home.earthlink.net/cgi-bin/mailto">

    Or use http://home.earthlink.net/cgi-bin/mailto_silent if you are not interested in such information. This is known as the mailto_silent script:

    <FORM METHOD="POST" ACTION="http://home.earthlink.net/cgi-bin_silent>

  4. Use "hidden" input type. Somewhere in your script between the <FORM> and </FORM> tags, you must include the following hidden <INPUT> tag:

    <INPUT TYPE="HIDDEN" NAME="recipient" VALUE="yourname@yourdomain.com">

    <NAME> must be exactly as shown and is case sensitive. <VALUE> should be the email address to which you want your data sent. This email address should be in quotation marks.

  5. Say Thank You. Somewhere between the <FORM> and </FORM> tags, include this hidden <INPUT> tag so that anyone who fills out your form will be thanked for doing so:

    <INPUT TYPE="HIDDEN" NAME="thankURL" VALUE="http://URL_for_a_thankyou_page">

Again, <NAME> must be exactly as shown and is case sensitive, and the URL should be within quotation marks. In the <VALUE> field, place the URL for a page thanking the respondent for submitting your form.