Huggins' Email Form Script
Master Example Form #1

This Form
This form illustrates a broad sample of features of Huggins' Email Form Script. It illustrates some of the edits which are possible and it also illustrates the error reporting system. Feel free to try it here on this site. As you try it, enter "wrong data". For example, enter an illegal email address. Or enter different values in the phone number and phone number confirmation field. Or check too few or too many boxes. Once you get it right, the script will process.

Confirmation Email
If you enter your real email, you will receive confirmation of what you enter. In addition, when I get your email I will reply back with a copy of what the system sent me. (Note that my reply might take 24 hours because I'm not always sitting at my computer.)

Included with the Package
This form page is included in the script download package. We encourage you to try the form as is, to "look under the covers" to see how the script parameters are coded. You may also wish to play with the parameters to see the effects on the script.

Simple to Use Yet Full Featured
Just because it is full featured, don't think it is complex. While this script provides substantial features for input checking and output formatting, these features are optional. It is possible to have this script accept a form, send the email, and then go to a new page on your site by (1) changing the "<form>" parameter to point to the script, and (2) adding two simple parameters to specify the addresses to send to and the new page to go to. This script provides the full spectrum from fast and easy to use all the way to sophisticated use. The documentation even includes a quick start guide to get your form working fast and then allows you to add more customized features.

HEFS Bulletin
In addition, I strongly encourage you to sign up for the HEFS Bulletin. I use this email list to notify users of bug fixes and new versions. 

IMPORTANT ANNOUNCEMENT: This script uses Version 2.1.0 of the script. This new version has just become available. This new version provides substantially improved ability to control the look/feel of the error page, even following a "template" of your own site. It also includes the ability store the answers in a CSV file on your server. And, finally, it offers minimal improvements in the support of Windows Servers. This demo template does not yet demonstrate all these new features. If you want to be kept aware of this progress, sign up to receive the HEFS Bulletin.

 

* indicates a required field

Why are you filling out this form?*
 
    Use of a pull down list like this can be configured to help stop spambots. This one, for example, requires a selection. Spambots frequently "send" the form with the default. This test form checks for that circumstance.
See the edit on the field named "why" in FormFieldNameEditList.

 
First Name*
 
    In this form, First Name and Last Name are combined to form the full name. This is used for the emails which are sent.
First Name is set to required in FormFieldNameLabelPlusList.

 
Last Name
 
    If Last Name is supplied, it will be combined with First Name for the address of the Echo Message.
See FormNameFieldList. See also FormFieldNameLabelPlusList where Last Name is set to not required.

 
Gender
 
  Male
Female
Was female, now male
Was male, now female
Would rather not say
Not sure
 
  These radio buttons are grouped under the name "gender". See Msg1FieldNameValueSubstitutionList to see how the radio button values of V1 thru v6 are translated to their text equivalents. Note that FormFieldNameLabelPlustList also references "gender".
Email Address*
 
    Email Address must be a legal email address and must match Confirm Email Address.
See FormEmailFieldList.

 
Confirm Email Address*
 
    See FormEmailFieldList.
 
Business Email Address
 
    Business Email Address must be a legal email address and must match Confirm Business Email Address.
See the edit on the field named "businessemail" in FormFieldNameEditList.

 
Confirm Business Email Address
 
    See the edit on the field named "businessemail" in FormFieldNameEditList.
 
Phone Number
 
    Phone Number must match Confirm Phone Number.
See the edit on the field named "phone" in FormFieldNameEditList.

 
Confirm Phone Number
 
    See the edit on the field named "phone" in FormFieldNameEditList.
 
Company
 
   
 
If winter is cold, summer is?*
 
    This is the pseudo-Captcha field.
See the edit on the field named "test78" in FormFieldNameEditList.

 
For Office Use Only. Do not put anything in this field.
 
    This is an attraction field. It attracts the spambots to put something in it. That will cause a failure.
See the edit on the field named "email2" in FormFieldNameEditList.

 
What do you want? (Boy, Girl or Dog)
 
    Must be a value of "boy", "girl" or "dog". Case does not matter.
See the edit on the field named "whatdoyouwant" in FormFieldNameEditList.

 
Anything except "star" or "trek" or "star trek" or "startrek"
 
    Must not be "star" or "trek" or "star trek" or "startrek". Case does not matter. Note that "stars", "trekker" and "startrekker" are all legal.
See the edit on the field named "notstartrek" in FormFieldNameEditList.

 
Number of Children
 
    Integer between zero and 20. Also, if you enter a decimal number (e.g., 2.5) you will get an error.
See the edit on the field named "numberofchildren" in FormFieldNameEditList.
 
Your Weight
 
    Number between 50 and 1000. Decimal values are permitted.
See the edit on the field named "yourweight" in FormFieldNameEditList.
 
Misc Characters
 
    Letters and some characters ("@#$%^") are legal. Note that numbers and also "!", "*", "(" and ")" are not legal.
See the edit on the field named "misccharacters" in FormFieldNameEditList.

 
Areas of Interest*
Please select 3 to 6 areas of interest
 
  Mountain climbing
Swimming
Talking with aliens
Camping
Complaining about government
Complaining about politicians
Bowling
Vegging out in front of the television
 
  These 8 checkboxes (c1 thru c8) may be checked. The edit forces 3 to 6 to be checked.
See the edit on Areas of Interest in FormFieldNameEditList. Also, see the specification of the checkboxes in FormFieldNameLabelPlustList.
 
Please help me!
 
      Finally, you can do me a huge favor. As you use this form, type some info here to tell me what you are doing. Are you thinking of using my script? How did you find my script? Are you already working to implement my script and trying to figure out how to use it? Are there features you need that it doesn't have? In other words, tell me more about how you got here and what you are doing. And don't hesitate to ask for help if you need it. 

      Don't forget to sign up for the HEFS Bulletin.