Contact Info.
Research
Projects
Publications
Software
Curriculum Vitae

Interesting Links

Colorado School of Mines
CSM Directory
CSM Search

Geology and Geological Engineering
Computing and Networking

CGI: basic_form_mail

This is a general purpose CGI, and is callable by anyone using CSM web services. It allows users to create an HTML FORM, have the results e-mailed to a designated address, and precent the client with a "Thank you" page.

I currently have two versions of basic_form_mail.cgi. One for the main CSM server, and a second for the secure server (rock), which requires user authentication (slate username/password). At the moment, the two versions are significantly different. The secure version is based on the insecure version, but has significant enhancements.


MAIN CSM WEB SERVER VERSION:

When using this version, the opening FORM statement should be:

  • <FORM METHOD="POST" ACTION="http://www.mines.edu/csm-cgi-bin/basic_form_mail">
Between the <FORM> and </FORM> tags, the HTML file MUST contain the three HIDDEN INPUT's statements:
  • <INPUT TYPE="HIDDEN" NAME="RECIPIENT" VALUE="wwingle@mines.edu">
  • <INPUT TYPE="HIDDEN" NAME="CGI SUBJECT" VALUE="Test E-mail Messenger">
  • <INPUT TYPE="HIDDEN" NAME="HOMEPAGE" VALUE="http://www.mines.edu/~wwingle/gmail.shtml">
(RECIPIENT, CGI SUBJECT, and HOMEPAGE must be in CAPS). The VALUE="..." areas are user definable. The RECIPIENT is who the FORM results will be sent to. The CGI SUBJECT is the subject of the e-mail message, so messages can be easily identified or filtered. The HOMEPAGE is generally the URL of the FORM page; this CGI creates a Thank you page, and this URL allows the generated page to refer back to the calling page.

The non-HIDDEN FORM INPUT's will be echoed in the e-mail message, one per line, using the INPUT NAME and user defined VALUE.


Example: http://www.mines.edu/~wwingle/gmail.shtml
It is best to copy and modify this FORM for your own use. If you submit this FORM, I will receive the results.


SECURE WEB SERVER VERSION:

When using this version, the opening FORM statement should be:

  • <FORM ACTION="https://rock.mines.edu//cgi-bin/passwd/basic_form_mail.cgi" METHOD="POST"">
Between the <FORM> and </FORM> tags, the HTML file MUST contain the two HIDDEN INPUT's statements:
  • <INPUT TYPE="HIDDEN" NAME="RECIPIENT" VALUE="ns@mines.edu">
  • <INPUT TYPE="HIDDEN" NAME="SUBJECT" VALUE="CSM IP Address Request">
(RECIPIENT and SUBJECT must be in CAPS). The VALUE="..." areas are user definable. The RECIPIENT is who the FORM results will be sent to. The SUBJECT is the subject of the e-mail message, so messages can be easily identified or filtered.

There are also a number optional HIDDEN statements:

  • <input type="HIDDEN" name="REQUIRED" value="machine_name, resp_person, building, room, machine_type, op_system, department, email">
  • <input type="HIDDEN" name="MESSAGE" value="We will try to process your request within 24-hours. Thank you.">
  • <input type="HIDDEN" name="HEADER" value="<B>Application Information:</B>">
REQUIRED lists the INPUT fields that the user must enter a value (NAME=).
MESSAGE is a comment added to the bottom of the "Thank you" page.
HEADER is a comment at the top of the "Thank you" page (prior to the echoed input).


Example: https://rock.mines.edu/Academic/computer/service/ip/


wwingle@uncert.com
Last Modified: October 2, 2014