frogstar.biz - Affordable Web Hosting

 
  FROGSTAR FAN?  Help me! | Blog me! | Link me. | Keep Frogstar Ad Free
!

     ASP Form Handler

 FUN ~ FRIENDLY ~ FUNCTIONAL       

FEEDBACK ~ CHAT ~ WEBCAM ~ SEARCH ~ GUESTBOOK ~ HOSTING  

FUN STUFF HOME
Frogstar Business
Contact Info
Design Portfolio
Web Tools

Humour Text Files
Audio Archive
Odd MP3 Files
Funny Pictures
Optical Illusions
All Your Base...
Stupid Web Files
Java Games
Cool Inventions
Video / TV Clips
Grand Theft Auto
Virgin Mobile
Random Journal Pics
Spider on Drugs
3 Stages of Man
The Daily LoL
Daily Content
What's New!

Hiccup Cure
Snowflake Registry
Pick O' The Day
Theory of NOW
Radio Play
Sketch Comedy
Comic Strip
Email Fights
Weird IMs
Odd Email
FriendBOT
Payphone Pranks
Error Message
CHAT Game
Free Ideas
Procrastination
My Hack Attack
Quotes
BOOK!
BOOK II
Astrology
Software Reviews
Cool Sites
Ask Wonko
Crime Stakeout
Escalator Manual
BBS Documentary

Star Trek
Star Wars (Line)
GeoCaching
Kyocera 7135 Palm
Grand Theft Auto
Howard Stern
Canada
Commodore 64

Jeff Goebel
Ask Jeff
Toronto Walks
Strange Dreams
PayPal Donations
My Car Mask
Photography
Blog
Casio Watch
Acton High School
The Family Cats
WebCam
Work Links

Search
Frogstar Supports
Support Frogstar
Feedback
Guestbook
Chat Room
Speed Tests
Mailing List
Disclaimer
Frogstar Forums
xyzzy

Wisdom: New Page 1

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:

Email Address:

Name:

In case you care, this sample form does nothing.
 
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:

 FROGSTAR.CA - The Fun Internet Hosting Company Go To Top Of Page

1 People Online.
This does not make you any less special.

Share this article