| A Complete Example:
Presented here is a
complete example of using FormBoss to process your form results.
Let's say you have a simple form on your website where you want to
collect Names, E-mail addresses and comments from the online
visitors.
Such a form might look like this:
And the HTML code
for this form would look like this:
<form
method="POST"
action="/cgi-bin/formboss">
<input type="hidden" name="Website"
value="My Web Site">
<input type="hidden" name="NextPage"
value="thanks.html">
<input type="hidden" name="Subject"
value="Online Comments">
<input type="hidden" name="MailTo"
value="myself@myisp.com">
<input type="hidden" name="Journal"
value="comments.txt">
<input type="hidden" name="Fields"
value="Name,Email,Comments">
<input type="hidden" name="Required"
value="Name,Email">
<input type="hidden" name="ReplyTo"
value="Email">
<input type="hidden"
name="Confirmation" value="Thanks for your
comments.">
...
<input type="text" name="Name"
size="40">
...
<input type="text" name="Email"
size="40">
...
<textarea rows="3" name="Comments"
cols="30"></textarea>
...
</form> |
Now, when a visitor
fills in this form and clicks on the [Submit...]
button, an e-mail will be sent to you by the FormBoss script like
that looks like this:
From:
My Web Site <jane@somewhere.com>
To: Form Recipient
Subject: Online Comments
Name :
Jane E. Doe
Email : jane@somewhere.com
Comments : Nice site!
Form received at.: 11/09/2001
6:13:59 am
Website..........: My Web Site (www.mysite.com)
Client...........: 192.168.1.2:1452
Form mailed to...: myself@myisp.com
Confirmation to..: jane@somewhere.com
Journal is at....: http://www.mysite.com/comments.txt
_______________________________________________________
This form was processed successfully by FormBoss, v2.1. |
And a confirmation
e-mail will be sent to the form submitter that looks like this:
From:
My Web Site <myself@myisp.com>
To: Form Submitter
Subject: Online Comments
Thanks for your comments.
About the form you submitted:
-----------------------------
Received by..: My Web Site
(www.mysite.com)
Received at..: 11/09/2001 6:13:59 am
_______________________________________________________
This is an automated response from FormBoss, v2.1. |
And finally, a line
will be logged to a journal file (comments.txt)
in your web space directory that looks like this:
"11/09/2001 6:13:59 am","Jane E.
Doe","jane@somewhere.com","Nice site!"
You may
retrieve the contents of the journal file at any time by clicking on
the URL shown in the e-mail sent to you by the FormBoss script.
|