 |
You have two options, depending upon how you want the results
of your forms to get to you:
1. DataForm will save the results of the form fields to a comma delimited
file within your site on the web server. This is especially good if you
will want to import your results into a database program, or spreadsheet, like
Access or Excel. As new people go th the form and fill it out, the file gets
opened and the results are written to a new line.
2. FormMail will email the results to an email address that you specify.
INSTRUCTIONS
First, get the zip file called "CGI.zip, which contains the cgi scripts and form files. Download and unzip the file to your local drive.
For dataform:
Double click on the folder called "dataform." You should see 2 files:
dataform.html & writefile.cgi.
Dataform.html is our sample form which can be modified to suit your
needs. You will want to modify 3 sections: The head (title, background
color, etc.), HTML content (pictures and descriptions before the form fields
so your customers know why they are filling out a form in the first place),
& the form fields themselves (the blank, typeable fields where your
customers fill out the information you can request of them).
Writefile.cgi is the cgi script that takes the contents of the forms
and writes those results to a comma delimited text file in a directory
called "data" that you will create. It also gives a confirmation to the
user of your form, then allows them to click their way out, preferably
back to your site somewhere you can choose.
1. Open writefile.cgi in notepad and make the changes according to the
4 sections and save the file. Do the same for dataform.html.
2. Upload the writefile.cgi into your cgi-bin directory (IN ASCII MODE!!!!)
and make it executable. To do this in ws_ftp, highlight the file, right
click, choose chmod(unix), then click on all read and all execute buttons,
leaving the write alone. Then click OK.
3. With ws_ftp, open your server and make a folder called "data" then
make it web writeable. To do this in ws_ftp, highlight the file, then right
click, choose chmod(unix), then for "remote file permissions," check all
3 functions (Read, Write & Execute) for "Owner" and "Other," and leave
"Group" unchecked. Then click OK.
4. Upload the dataform.html file into your pages directory (IN ASCII
MODE!).
There are extensive notes within the html about where things go and
what things do.
For FormMail:
Double click on the folder called "mailform." You should see 2 files:
mailform.html & FormMail.cgi.
Mailform.html is our sample form which can be modified to suit your
needs. You will want to modify 3 sections: The head (title, background
color, etc.), config values (recipient,subject, title and return link values),
HTML content (pictures and descriptions before the form fields so your
customers know why they are filling out a form in the first place), &
the form fields themselves (the blank, typeable fields where your customers
fill out the information you can request of them).
FormMail.cgi is the cgi script that takes the contents of the forms
and sends them via email to an address you specify in mailform.html's "recipient"
variable. It also gives a confirmation to the user of your form, then allows
them to click their way out, preferably back to your site somewhere you
specify in mailform.html's "return_link_url" variable. Unlike writefile.cgi,
you do not need to modify this script.
1. Upload the FormMail.cgi into your cgi-bin directory (IN ASCII MODE!!!!)
and make it executable. To do this in ws_ftp, highlight the file, right
click, choose chmod(unix), then click on all read and all execute buttons,
leaving the write alone. Then click OK.
2. Modify the mailform.html file to suit your needs, then upload it
into your pages directory (IN ASCII MODE!!!!).
There are extensive notes within the html about where things go and
what things do.
Anywhere there are two asterisks (**) you need to change.
Anywhere there is one asterisk (*) you can but don't have to change.
| |