Mail Form
Adding a guestbook is easier than this script. If you have never worked with forms before, try adding a Guestbook to your page before you try utilizing this script.
First, you need to make a form which POSTS or submits to '/cgi-bin/email_form.pl'. You need to name each field a unique name. Name them all as lower-case, space-free words. A couple of 'HIDDEN' fields need to be presena, as well:
The template field is the file which is emailed to you. Before it is emailed, all the values the user enters into the form will be pushed into VARIABLES in the template. After all is done, the user will be redirected to the value of the 'redirect' field. The fields names are case-sensitive (use lower case!). Here are a couple of sample uses of this script:
www.freshartnyc.org's Mailing list signup
www.monkeybrains.net's sign-up form
Here is a sample template:
|
From: FreshArtNYC Site
To: your_email@freshartnyc.org
Subject: Add me to the mailing list!
Some one filled out the mailing list form on the freshartnyc.org site!
Here is the info I recorded for you:
$first $last
$email
$street
$city
$state
$zip
$country
|
And corresponding form:
Which looks like this:
Return to Support section of MonkeyBrains.net