Link to Home page Link to Contact Information Link to Links Link to Fun stuff My Resume My Ph.D. work My Web Sites Technology Related Material Pedagogy Related Material

Important Tags for FormMail:

Required Fields:

 

To make the form work:

 

 

<FORM ACTION="/cgi-bin/BFormMail" METHOD=POST>

To have the form emailed to you:

 

 

<input type=hidden name="recipient" value="email@your.host.com">

 

 

 

Optional Fields:

 

Subject:

 
 

This field enters a subject into the email subect line

 

 

<input type="hidden" name="subject">

 

Redirect:

 
 

This field directs people to a web page after they click the "submit" button

 

 

<input type=hidden name="redirect" value="http://your.host.com/to/file.html">

 

Required Fields:

 

This will send an error message if the required fields are not filled in by the user

 

 

<input type=hidden name="required" value="email,phone">

 

Environment variables:

 
 

These give you information about who filled out your form

 

REMOTE_HOST - Sends the hostname making a request.

REMOTE_ADDR - Sends the IP address of the remote host making the request.

REMOTE_USER - If server supports authentication and script is protected, this is the username they have authenticated as. *This is not usually set.*

HTTP_USER_AGENT - The browser the client is using to send the request.

<input type=hidden name="env_report" value="REMOTE_HOST, HTTP_USER_AGENT">

If No Redirect:

 

If you do not have a redirect page after the user hits the submit button, you can modify the return page as follows:

Header:

<input type=hidden name="title" value="Feedback Form Results">

Return Link URL:

<input type=hidden name="return_link_url" value="http://your.host.com/main.html">

Return Link Title:

<input type=hidden name="return_link_title" value="Back to Main Page">

Background image:

<input type=hidden name="background" value="http://your.host.com/image.gif">

Background color:

<input type=hidden name="bgcolor" value="#FFFFFF">

 

Text Color:

<input type=hidden name="text_color" value="#000000">

 

Link Color:

<input type=hidden name="link_color" value="#FF0000">

 

VLink Color:

<input type=hidden name="vlink_color" value="#0000FF">

 

ALink Color:

<input type=hidden name="alink_color" value="#0000FF">

 

 

 

 

Important Tags for BFormMail:

cc

 

 

 

This form field will allow you to send a copy of the users form data to another address instead of putting multiple addresses in the recipient field.

 

 

<input type=hidden name="cc" value="webmaster@infosheet.com">

 

courtesy_reply

 

 

This field initiates an automated courtesy reply to the user to thank them for filling out your form!

 

 

<input type=hidden name="courtesy_reply" value="yes">

 

courtesy_reply_texta

 
 

The first line of your courtesy reply text

 

 

<input type=hidden name="courtesy_reply_texta" value="Thank you for taking the time...">

 
courtesy_reply_textb  

 

The second line of your courtesy reply text

 

 

<input type=hidden name="courtesy_reply_textb" value="Call us if you need anything...">

 
courtesy_who_we_are  

 

Tell the visitor who you are in the courtesy reply footer

 

 

<input type=hidden name="courtesy_who_we_are" value="The Byte Shop">

 
courtesy_our_url  

 

If you want to put your url in the footer of the reply

 

 

<input type=hidden name="courtesy_our_url" value="http://www.infosheet.com">

 
courtesy_our_email  

 

If you want to put your mailto in the footer of the reply

 

 

<input type=hidden name="courtesy_our_email" value="bsietz@infosheet.com">

 
append_db  

 

Appends field values to a flat-file database

 

 

<input type=hidden name="append_db" value="./formdata/InfoSheet.dat">

 
db_fields  

 

Specify exactly which fields are appended to the database

 

 

<input type=hidden name="db_fields" value = "realname,email,homephone">

 
db_delimiter  

 

The separator character between fields in the database

 

 

<input type=hidden name="db_delimiter" value = ",">