This browser does not support basic Web standards, preventing the display of our site's intended design. May we suggest that you upgrade your browser?

Adobe Dreamweaver CS3

Forms: Using the UW-Eau Claire Form Processing Script

To have the results of completed forms returned to you, you must both assign the forms processing script to your form and insert the five required hidden form fields. This will allow you to use the basic email message functions. To make use of additional features, you will also need to insert Optional Form Fields.

return to topAssigning the Forms Processing Script

  1. Open the file that contains your form or create your form

  2. Select the red dashed form boundary
    The Form Properties pane appears.
    Form properties pane

  3. To tell your form where the forms processing script is located on the UWEC Web server, in the Action text box, type http://www.uwec.edu/scripts/formmail/formmail.pl
    NOTE: This script and its location are available to UW-Eau Claire web developers only.

  4. From the Method pull-down list, select POST
    Continue with Defining the Required Hidden Form Fields and then Inserting the Required Hidden Form Fields.

return to topDefining the Required Hidden Form Fields

Hidden form fields are similar to the other form fields in that they have name-value pairs with field names that are case sensitive. However, unlike the other form fields, hidden form fields are not visible to the user. Hidden form fields allow form developers to pass information from a form to a form handler script, or from one form to another.

HINT: There are additional, optional form fields available for you to use with the forms processing script. For more information, refer to Optional Form Fields.

There are five hidden form fields that must be inserted in a form in order for the forms processing script to work.

recipient
This hidden form field specifies who will receive the email message that contains the form results. The appropriate person's email address must be entered as the value of this hidden form field. To send to multiple recipients, enter all email addresses, separated by a comma and a space.

subject
This hidden form field specifies the subject line of the email message containing the form results. The desired subject must be entered as the value of this hidden form field.

title
After a user submits a form, a new web page will be displayed showing the responses that the user submitted. This hidden form field specifies the title of this web page, both on the page and in the top of the browser window. This title must be entered as the value of this hidden form field.

return_link_url
After a user submits a form, the web page is returned showing the form results. This page will also contain a return link at the bottom, allowing the user to link back to another web page. The URL for this link must be entered as the value of this hidden form field.

return_link_title
After a user submits a form, the web page is returned showing the form results. This page will also contain a return link at the bottom, allowing the user to link back to another web page. The value of this hidden form field specifies the text for the return link -- the linked text visible to the user. The text for this link must be entered as the value of this hidden form field.

 

return to topInserting the Required Hidden Form Fields

When working in Design view, the hidden form fields may not be visible to you after you insert them.

To display invisible elements:

  1. From the Edit menu, select Preferences...
    The Preferences dialog box appears.

  2. From the Category section, select Invisible Elements

  3. From the Invisible Elements section, ensure that Hidden form fields is selected

  4. Click OK

To insert the hidden form field(s):

  1. Open the file that contains your form or create your form

  2. Place your insertion point within the form boundary where you would like to insert the hidden form field

  3. From the Insert menu, select Form » Hidden Field
    OR
    From the Insert bar, in the Forms tab, click HIDDENFIELDHiddenField button
    The hidden field icon appears.

  4. To select the hidden field, click the HiddenField iconHiddenField icon
    The HiddenField properties pane appears.
    HiddenField properties pane

  5. In the HiddenField text box, type the name of the appropriate hidden form field

  6. In the Value text box, type the appropriate value of the hidden form field

recipient
This value is the email address of the person who will receive the form results. To send the email to multiple recipients, type all the email addresses, separating each email address by a comma and a space.
EXAMPLE: username@uwec.edu

subject
This value is the subject line of the email message that will contain the form results.
EXAMPLE: UW-Eau Claire Information Form

title
This value is the text for the title of the resulting web page.
EXAMPLE: Student Information Form Results

return_link_url
This value is the URL of the return link found at the bottom of  the resulting web page.
EXAMPLE: http://www.uwec.edu/formpage.htm

return_link_title
This value is the text for the return link -- the text visible to the user.
EXAMPLE: Back to Dreamweaver Forms

  1. Repeat steps 3-6 until all five hidden form fields have been added
    HINT: There are additional functions available, (e.g., requiring that certain fields be filled, redirecting users to another page, sending copies, sending courtesy replies, and sending results to a text file). To use these additional functions you must insert optional form fields. For more information, refer to Optional Form Fields.

return to topModifying the Required Hidden Form Fields

There may be times when you want to change information contained in the required hidden form fields. This section explains how to modify the necessary hidden form fields.

  1. Open the file that contains your form

  2. To select the hidden form field, click the HiddenField iconHiddenField icon
    The HiddenField Properties pane appears.
    HiddenField properties pane

  3. Make the appropriate changes in the HiddenField and Value text boxes
    HINT: To delete the hidden form field, when it is selected, press [Delete].

Excellence. Our Measure. Our Motto. Our Goal.