los rios logo

Information Technology 

 Information Technology: Creating Web Pages at Los Rios

divider
gray fill gray fill transparent


How do I implement a Basic Form into my Web pages?

The Los Rios web servers offer a basic form service which is described on this page and it allows you to collect information from a web page and email it to a Los Rios email address. The Los Rios web servers also offer an advanced form service which, in addition to the basic form, lets you collect the information into a spreadsheet. This advanced form service can be found following this link - How do I collect my web form data into a spreadsheet?

To create a form, you must use the <FORM></FORM> tags. Inside the FORM tags are each of the individual form elements plus any other HTML content needed to create a layout for the form. Some of the content needs to be changed in order for your own form to work properly and to your specifications. You will want to change the recipient field to be your own email address. Of course, you will also want to change all the fields, titles, etc. to be what you would like them to be.

DO NOT CHANGE THE FOLLOWING LINE OF YOUR SCRIPT OR IT WILL NOT WORK:
<form method="POST" action="/cgi-bin/FormMail.cgi">

( Values below that you need to change = recipient, subject, return_link_url, return_link_title)

  (Use your email address)
<input type="hidden" name="recipient" value= "Username@losrios.edu">  
(Create your own name for this form)
<input type="hidden" name="subject" value="TEST - Request for Information">
 ( This will print all fields on the email receipt, even if they were left blank)
<input type="hidden" name="print_blank_fields" value="1"
 ( You can require that certain fields must be entered)
<input type="hidden" name="required" value="Name,email,Comments"
 (You can colorize your user's form request receipt)
<input type="hidden" name="bgcolor" value="#FFFFFF">  
 (Have it link back to your form page)
<input type="hidden" name="return_link_url" value="/~username/formname.htm"> 
 ( Give your return link a name)
<input type="hidden" name="return_link_title" value="Form Mail Test  Page">  


(Add/Delete as many text fields below to suit your  needs)
<nobr><
label for= "fullname"> Name:</label></nobr><input SIZE="50" name="Name" id="fullname"> <br>
<nobr><
label for= "title">Title:</label></nobr><input SIZE="50" name="Title" id="title"> <br>
<nobr><
label for= "campusname">Campus:</label></nobr><input SIZE="40" name="Campus" id="campusname"> <br>
<nobr><
label for= "phone">Telephone:</label></nobr><input SIZE="20" name="Telephone" id="phone"> <br>

(If you want to return email back to the user, you must use the variable name ="email" for this field. It  must be all lowercase and spelled exactly as shown here.)
<nobr><label for= "email">E-Mail:</label></nobr><input TYPE="text"  name="email" id="email"> </p>
<p>Comments: <br>
<textarea NAME="Comments" ROWS="3" COLS="60"></textarea> </p>
<p>Please click on the SEND button below. Your request will be e-mailed to Username. Thank you.</p>

The following line is required:
<p><input TYPE="SUBMIT" value="SEND">
<input TYPE="RESET"value="CLEAR"> </p>

</form>  (Remember to close your form tag)


Review the FormMail Documentation  to see what other options you have.

The FormMail script has been configured to disallow other domains to use it. Your web form must reside on an authorized Los Rios web server in order to use this service. Your "recipient" email address must also be a Los Rios email account (losrios.edu). These controls help prevent spamming. In addition, the "env_report" parameter has been disabled to prevent unauthorized access of environment variable information.

  • Recipient Email Address MUST be a Los Rios Email Address
  • Your web form MUST reside on an authorized Los Rios web server

In order for the form to work correctly, you must link to your html page that contains the form with a full URL link such as "www.crc.losrios.edu."

back to top

 

 

 

transparent