|
The Public Homepage Server is a World-Wide Web server offered by the ITS as a service to the students, faculty, and staff of Iowa State University. This document describes the generalized feedback utility available to all users of this system. Please read the entire contents of this document before trying to use this utility. IntroductionShortly after the Public Homepage Server was introduced, it became evident that the people and groups providing information needed a mechanism to obtain feedback (comments) from those viewing their information.ITS provides a utility that generates a generalized feedback form based upon a configuration file stored in a WWW-accessible directory with other WWW documents. In this configuration, one tool is available that generates a form, processes the input, and uses electronic mail to relay that information. To use the feedback utility, you should follow these steps:
Uniform Resource Locators and Configuration File LocationThe feedback utility is a CGI (Common Gateway Interface) program that runs on the WWW server (www.public.iastate.edu). This program reads a configuration file and (among other things) generates a feedback form. However, it must know where to find the configuration file to read.This configuration file is referenced by appending a location to the end of the URL for the feedback utility. The feedback configuration file can be located in any WWW-accessible directory (anything under the ~/WWW directory for users, and anything under /home/lockername/WWW for lockers). The Uniform Resource Locator to the generalized feedback utility is:
http://www.public.iastate.edu/cgi-bin/feedback
http://www.public.iastate.edu/cgi-bin/feedback/~joeuser/feedback.conf
Configuration File Description and FormatThe configuration file for the feedback utility is a plain-text file that can be edited with any text editor. The configuration file contains three types of information: comment lines, settings, and field specifications. The format is described below.Comment LinesBlank lines in the configuration file are ignored. Lines starting with a pound sign (#) are treated as comment lines and are also ignored.For example, the following lines are all treated as comments: # Lines beginning with the pound sign (#) are comments. # Blank lines (like the one above) are comments too. SettingsSettings are used to alter the behavior of the feedback utility or to provide information other than field specifications (described in the next section).Settings and field specifications are used (one per line) in the following manner:
name=value
The following settings are available:
The following example shows the mailto and title settings in a configuration file:
# --- Settings --- Field SpecificationsWhen the feedback form is generated, a set of field specifications is read from the feedback configuration file. This information is used to determine which fields are displayed on the form.For most uses, the following field specifications should suffice:
# --- Fields ---
ExamplesA minimal configuration file would only contain the mailto setting and the comments field.
# --- Settings ---
# --- Settings ---
# --- Settings --- Default Configuration and __HEADER__By default, a generic message (or heading) is displayed at the top of the automatically generated form.Alternatively, a customized header may be specified. If the special line __HEADER__ is included, all subsequent lines are interpreted as HTML code for the portion of the document just before the form. Note: __HEADER__ is two underscore characters, then HEADER followed by two more underscore characters. The HTML in the __HEADER__ is inserted at the beginning of the <BODY> section of the document. Note that the __HEADER__ specification must come after all comments, settings, and field specifications in the configuration file. For example, # --- Settings ---mailto=cc-feedback@iastate.edu title=AIT Feedback # --- Fields --- name=req email=opt comments=req # Everything below the next line is HTML that will be displayed __HEADER__ <H1>My Feedback Form!</H1> Leave your comments here. Thanks.<P> No Field Verification or ValidationWhen the form is processed, no attempt is made to verify or validate any of the information provided.Menu-based Utility for Creating Feedback Configuration FilesA menu-based utility has been created which allows for the simple creation of feedback form configuration files.To use this utility, issue the following commands at the Vincent (isua) prompt,
vincent% add www |
|
|
Copyright © 2005, Iowa State University of Science and Technology. All rights reserved. pubmaster@iastate.edu. |
|