|
FormMail.asp is a
freeware form handler that provides form handling functionality commonly
associated with Perl (CGI) script handlers. It offers
features not available in the standard Microsoft FrontPage form handler, and
is easier to use than Perl form handlers such as formmail.cgi because it
uses hidden form fields, as opposed to hard coding parameters in complex
non-html scripts.
The advantages include
-
(1) using the same form handler for different forms with
different results
-
(2) not having to edit complex CGI Perl scripts
-
(3) forms can be processed based on a respondent's form
selections
Standard Form Fields:
Create your online form as normal. There is no
limit on the number of form fields you use, or on the appearance or
placement of the form fields in any way.
Hidden Form Fields:
These field values are normally defined in hidden form
fields, but can be specified with drop down menus or radio buttons to
process forms based on form selections. See the code samples, if you
do not understand the form syntax.
| Field Name |
Description |
_recipients |
Required The email address to send the form to.
Multiple recipients can be specified by separating addresses with commas
(',').
<input name="_recipients" type="hidden"
value="admin@example.net">
or
<input name="_recipients" type="hidden"
value="sales@invalid.com,orders@invalid.com">
|
_replyTo |
An email address that will be used in the
Reply-To header of the email.
<input name="_replyTo" type="hidden"
value="guest@example.org">
|
_replyToField |
Like _replyTo except that the value for
the
_replyTo comes from the name of another field on the
form. Generally, you'd use the name of a field that asks for the user's
email address. Then, the email would have a Reply-To header
set to that address making replies easy.<input name="_replyToField" type="hidden"
value="Email">
...
Your email address: <input name="Email"
type="text" size=40>
|
_subject |
Specifies the text to use in the email subject line.
<input name="_subject" type="hidden"
value="Site Feedback">
|
_requiredFields |
A comma-delimited list of field names that should be
checked for a value. Any missing values causes an error message to be
displayed and the form will not be submitted.
<input name="_requiredFields" type="hidden"
value="Name,Address,City,State,Zip,Email">
|
_fieldOrder |
A comma-delimited list of field names. When building
the email, the fields and values will be displayed in the order
specified here. Note that if you use this option, you must specify the
names for all form fields you want sent.
<input name="_fieldOrder" type="hidden"
value="Name,Email,Phone,Address,City,State,Zip">
|
_envars |
A comma-delimited list of environment variable names.
These can be any of the fields available in the
Request.ServerVariables collection.
<input name="_envars" type="hidden"
value="HTTP_REFERER,HTTP_USER_AGENT,REMOTE_ADDR">
|
_redirect |
Normally when the form has been submitted and the
email sent without any errors the script will display a thank you
message along with the form data. You can change this by specifying the
URL of another page in this field and the user will be sent there
instead.
<input name="_redirect" type="hidden"
value="termsofservice.html">
|
Sample:
SOURCE FOR ABOVE SAMPLE:
If you are hoisting your web site on the Frogstar server, help is available no charge.
More details and options can be found here:
|
|