NTW Logo (Black) About IEEE IEEE Membership Products and Services Conferences IEEE Organizations
IEEE Nav Bar
Generating E-mail Messages from Web Forms
Tools | Web Developers Guide | Creating Forms |

CGI Script: http://ewh.ieee.org/cgi-bin/fproc.cgi

Index


Features include ability to:

  • Indicate required fields for data entry completeness.
  • Control the order the data is presented to you in (no numbering required).
  • Specify URL for successful/unsuccessful transmission.
  • Create Auto confirmation e-mail.
  • Cc recipients.
  • Write to data file.

Instructions for Using

  1. Create your form in Dreamweaver.
  2. Select the form (click on red dotted line).
  3. Specify the script to process the form data next to action: http://ewh.ieee.org/cgi-bin/fproc.cgi.


  1. Specify the Method: Post.


Customizing the Form

In order to customize your form, you will enter a series of hidden fields which include:

Hidden Field Description
submit_to E-mail address of person to receive responses
cc_to E-mail address of another person to receive responses
form_id Subject of e-mail message
data_order Order of fields to appear in e-mail message
ok_url URL to go to if successful
submit_by E-mail address of person submitting response
*required List of fields user must input prior to submitting
*outputfile Name of file to save data to.
*not_ok_url URL to go to if unsuccessful
*automessage Text to print for autoconfirmation e-mail
outputfile Tells the system you want to log information,  and what to name the file

*optional fields

Specifying E-mail Address of Recipient

  1. Click inside your form, near the top.
  2. Click on the insert hidden field icon from the objects palette.
  3. Enter the field name: submit_to.
  4. Enter the e-mail address for the value. (This is the address of the person who will be receiving the responses)


Specifying Subject of E-mail

  1. Insert a hidden field.
  2. Enter the field name: form_id.
  3. Enter the text you would like to appear as the subject for the value.

Indicating Order of Fields
This will control how the fields will appear in the e-mail message.

  1. Insert a hidden field.
  2. Enter the field name: data_order.
  3. Enter the field names separated by commas in the value section.

Setting Email Confirmation
This will direct the user to a web page after they have clicked on submit so that they are ensured that their entry has been processed.

  1. Create a basic web page with an acknowledgement message. (Save and Close)
  2. Insert a hidden field.
  3. Enter the field name: automessage and set the value to "/docs/mysection/mymessage". The mymessage file is just a plain text file with the .baut file extension. For example, mymessage.baut is the file to be transferred to your account.

Setting URL Confirmation
This will direct the user to a web page after they have clicked on submit so that they are ensured that their entry has been processed.

  1. Create a basic web page with an acknowledgement message. (Save and Close)
  2. Insert a hidden field.
  3. Enter the field name: ok_url.
  4. Enter the URL for the confirmation page in the value section. Example: http://ewh.ieee.org/mysection/ok.html

Specifying Sender's E-mail Address
You must enter a field on your form for the user to provide their e-mail address if you want to be able to determine who has sent the web form through. Otherwise, the e-mail will state that the message is coming from <nobody@ieee.org>. This will assist with replying to the message.

  1. Insert a text field.
  2. Enter the field name: submit_by.

Setting Validation
You may want to ensure that certain fields have been completed prior to submission. To do so, follow the steps below.

  1. Enter a hidden field.
  2. Enter the field name: required.
  3. Enter the field names that you want to be required in the value section separated by commas.

Capturing a data file

You may want to capture your form submissions to a data file.  To accomplish this, follow the steps below:

Enter a hidden field

<input type="hidden" name="outputfile" value="/folder/filename"

example:  <input type="hidden" name="outputfile" value="/docs/r1/boston/text.txt"

 

© Small IEEE Logo
()
URL: http://ewh.ieee.org/bnbform.html
(Modified:07-Oct-2004)