Configuring an email form with BNBform
Note: A new form mail program called TFMail is availble.
Let us know if you would like this program installed for use with your web space.

BNBform email setup:
You can use this form to:

Collect information using a variety of field formats,
Automatically email a pre entered reply to the sender, 
Automatically email the entered information to a predetermined mail recipient or recipients. 

All config information is set up in the html form document (like this one) that you create. When the Submit button is pressed, this form will be submitted to the form processing script at http://www.westford.com/bin/bnbform30a.cgi This script will read the form data and config information in the html document that you created and will process the form accordingly. 

To create your own form, download this file and open it in a text editor such as Wordpad, or an HTML editor like Macromedia Homesite. Follow the config information embedded in the document (also show below). You can change the appearance of the document using web page editors such as Netscape Composer, Microsoft Front Page or Macromedia Dreamweaver. All form tags and comments will show up as yellow tag marks in Netscape and Dreamweaver. You can click on one and edit the tag, but you will only see one tag line at a time. You can change the tags in Front Page using the form tools. You can also insert new input lines.

This form will only work from web space on www.westford.com. The field names submit_by and submit_to are unique and should be used for the email of the person filling out the form (submit_by) and for the email address of the form recipient (submit_to). Don't change these names. For the submit_to input, set the value to be the recipients email address.  All other field names can be changed.

Feel free to test out the form. You will receive an auto response. To see how the data will come to you, see the output at the end of this page

Fields with an * are required and must be filled in. 

Your Name:* 

Country:* 

E-Mail Address:* 

Add to Mailing List: Yes No 

 Which fruit(s) do you like: 
Grape 
Banana 
Apple 
Comments: 

Shown below is the HTML code for the form above.

<!-- This line shows how you make a comment in html --> 

<!-- Do not edit the next line. This is the path to the form processing script --> 
<form METHOD="POST" ACTION="http://www.westford.com/bin/bnbform30a.cgi"> 

<!-- The area below uses standard html input method to collect the form data --> 
<!-- The person filling in the form enters their name here --> 

Your Name:*          <BR> 
<INPUT TYPE="TEXT" NAME="name" SIZE=35 MAXLENGTH=50><P> 

 Country:*            <BR> 
<INPUT TYPE="TEXT" NAME="country" SIZE=35 MAXLENGTH=50><P> 

 E-Mail Address:*     <BR> 
<INPUT TYPE="TEXT" NAME="submit_by" SIZE=35 MAXLENGTH=50><P> 

 Add to Mailing List: <INPUT TYPE="RADIO" NAME="mailing_list" VALUE="YES" CHECKED>Yes 
                      <INPUT TYPE="RADIO" NAME="mailing_list" VALUE="NO">No<P> 

 Which fruit(s) do you like:<BR> 
<INPUT TYPE="CHECKBOX" NAME="grape">Grape<BR> 
          <INPUT TYPE="CHECKBOX" NAME="banana">Banana<BR> 
                      <INPUT TYPE="CHECKBOX" NAME="apple">Apple<BR> 

 <!-- Example of a text area entry --> 
<!-- &nbsp is decoded as a space by the browser --> 
<font face="Arial,Helvetica"><font size=-1>Comments:&nbsp;</font></font> 
<br><textarea NAME="comments" ROWS="4" COLS="50"></textarea> 

<P> 
<!-- Here is an example of a pull down menu --> 
<select name="season" size="1"><option selected value="Non_selected"><font face="Arial,Helvetica"><font size=-1>Please 
select a topic</option><option value="Summer">Summer</option><option value="Winter">Winter</font></font></option></select> 

 <P> 
<INPUT TYPE="submit" VALUE="Submit!"><input type="reset" value=" Clear-Form"> 
 

<!--  SCRIPT CONFIGURATION SECTION  This is how the info will be processed. Input NAMEs in this section must be as shown below. Input VALUEs are based on your input NAMEs in the fileds above..--> 

<!-- What information is required? If fields listed in value are left blank, oops page will show up. If nothing is required, you may delete the next line.--> 
<INPUT TYPE="HIDDEN" NAME="required" 
    VALUE="name,country,submit_by"> 

<!-- What order do you want the data to show up in? --> 
<INPUT TYPE="HIDDEN" NAME="data_order" 
    VALUE="name,country,submit_by,mailing_list,grape,banana,apple,comments,season"> 

<!-- Where do you want the information emailed too? Can be multi addresses, just use a comma in between. NAME must be submit_to --> 
<INPUT TYPE="HIDDEN" NAME="submit_to" VALUE="tools@westford.com"> 

<!-- Do you want to send back an automated reply? --> 
<INPUT TYPE="HIDDEN" NAME="autorespond" VALUE="yes"> 

<!-- If so, what is the name of that file? Note: You need to enter the path from /bin. For most cases, replace clubs with the name of your directory space. Example: www.westford.com/club/message.txt would have the path  ./../club/message.txt --> 
<INPUT TYPE="HIDDEN" NAME="automessage" VALUE="./../tools/mymessage.txt"> 

<!-- Give the form a name so you can identify it when the email comes in. --> 
<INPUT TYPE="HIDDEN" NAME="form_id" VALUE="My Test Form"> 

<!-- The page displayed for a proper submission. Replace club in the path.--> 
<INPUT TYPE="HIDDEN" NAME="ok_url" 
     VALUE="http://www.westford.com/club/thanks.html"> 

<!-- The page displayed if not all of the info is filled in. Replace club in the path. --> 
<INPUT TYPE="HIDDEN" NAME="not_ok_url" 
     VALUE="http://www.westford.com/club/oops.html"> 

<!--  END OF SCRIPT CONFIGURATION SECTION --> 
</form> 

This is what the data will look like when you receive it. 
 
 

On Fri Mar  3 12:06:36 2000,

The following information was submitted:

Host: 207.132.45.127

name = Jane Smith

country = USA

submit_by = jsmith@westford.com

mailing_list = YES

grape = 

banana = 

apple = YES

comments = Nice web page

season = summer



Return to the Tools index page.