This site depends heavily on Cascading Style Sheets (CSS). While it will work without CSS, it does look much better if you enable CSS.

-----
CGI Programs at CLAS
New
Users
Department
Contacts
CLASnet
Users
About
CLASnet
  CLASnet
Home

CLASnet provides the following CGI (Common Gateway Interface) and and/or web-related programs on our web server on an "as-is" basis. The programs may be used by departments and units within the College of Liberal Arts & Sciences. We do not support access to these CGIs from any servers besides the web server(s) that CLASnet maintains.

Mail: CGI Form to Mail Gateway
This CGI will allow you to have the results from a web form emailed to your email address. It can be referenced two ways for the best flexibility:
  • <A HREF="/cgi-bin/mail?USER@DEPT.ufl.edu">
    This will generate an email form for the person named. If no USER is specified in the QUERY_STRING when the script is first invoked, an email form with a SELECT box of valid nicknames is generated. When the email form is submitted, it will call itself via method of POST, and send the email to the recipient, outputting a confirmation message. If the HTTP_REFERER was transmitted when the script was first invoked, there will be a hyperlink available to go back to that page (such as the user's home page).
  • <FORM METHOD="POST" ACTION="/cgi-bin/mail?USER@DEPT.ufl.edu">.
    This will forward the results from the FORM, which can exist anywhere, to the recipient specified. Since the USER is in the QUERY_STRING, the FORM *must* use the METHOD="POST", otherwise the recipient's name will be blown away.

You may want to include a: <INPUT TYPE="hidden" NAME="next-url" VALUE="/users/USER/received.html">. If this is present in the FORM input, the client will be redirected to this HTML file as a confirmation message instead of the default. In addition, you can also define any of the following input names in their form to better customize the output mailed back to them. These values will then be used in the header of the email message. Otherwise, default values will be substituted.

Below are some example lines you might embed in the form so that the Subject From address and name are not meaningless default values:
<INPUT TYPE="hidden" NAME="subject" VALUE="My survey results">
<INPUT TYPE="hidden" NAME="from-name" VALUE="Average Web user">
<INPUT TYPE="hidden" NAME="from-email" VALUE="jdoe@domain.com">

MHonArc
MHonArc is an email to web gateway program. Most often, we use it to hypertext email lists. It supports message threading, and many types of MIME attachments including images. Some users have threatened to use it, in addition to the CGI mail program, to create a "guestbook" to which people can leave messages.
Analog: Web Statistics Analysis
Analog is our web stats analysis program. Run weekly, its output is available as a web document.
Count: HTTP Counter
While the numbers given by web counters are, by nature of the web's technology, completely unreliable and unusable for statistics generation, some people still like to have the little dial on their page. CLAS uses Count. If you want such a counter, you'll need to contact us to create a data file for your web page.

The most common way to invoke the program is via:

<img src="/cgi-bin/Count.cgi?df=DATA.dat|ft=0|dd=B" align="absmiddle">
If these defaults do not suit your taste, please examine the link above for all of the configuration options.

CGIWrap
You aren't likely to call the CGIWrap program directly. Instead, you use it whenever you make a call to any "personal" CGIs, such as /~user/directory/program.cgi. A useful related CGI is /cgi-bin/cgiwrapd, which allows a programmer to debug a CGI running directly on the web server.
Image Maps
Server-side imagemaps (/cgi-bin/map?mapname) have been phased out. You should use the client-side USEMAP attribute instead. See this tutorial for more information.


[CLASnet main page] Last updated: Aug 02, 2004 (10:00:20 AM EDT)
URL: http://www.clasnet.ufl.edu/howto/web-cgi.shtml

College of Liberal Arts & Sciences
CLASnet

109 Rolfs Hall
PO Box 117300
Gainesville FL 32611
 
Contact: CLASnet
Phone: (352) 846.1990
FAX: (352) 846.1995

Printer-Friendly Page

Search CLASnet