Required Variables
The following example will send the information you enter in the fields to the Web Office email account.
HTML:
<HTML>
<
BODY BGCOLOR="#FFFFFF">
<B>FORM:</B>
<
FORM METHOD="post" ACTION="http://www.umsl.edu/servlet/FormServlet">
<
INPUT TYPE="hidden" NAME="E_Mail" VALUE="Web_Office@umsl.edu">
<
input type="hidden" name="Conditional" value="http://www.umsl.edu/computing/FormServlet/examples/oops.html">
<
input type="hidden" name="URLreturn" value="http://www.umsl.edu/computing/FormServlet/examples/thanks.html">
<
input type="hidden" name="SMTPreturn" value="/webstuff/htdocs/computing/FormServlet/examples/form2.tmplt">
<
INPUT TYPE="text" NAME="REQname" SIZE="30"> Your Name (required)<BR>
<
INPUT TYPE="text" NAME="address" SIZE="30"> Campus Address<BR>
<
INPUT TYPE="text" NAME="from_address" SIZE="30"> Email Address<BR>
<
INPUT TYPE="text" NAME="phone" SIZE="30"> Phone Number<BR>
<
INPUT TYPE="submit" VALUE="submit">
<
INPUT TYPE="reset" VALUE="reset">
<
/FORM>
</BODY>
<
/HTML>
FILES REQUIRED:
EXPLANATION OF TAGS:
<HTML>
Basic HTML tag. Tells the browser that the tags are using HTML.
<BODY BGCOLOR="#FFFFFF">
Basic HTML tag. Starts the BODY of the page. Formats background color to WHITE.
<B>REQUIRED VALUES FORM:</B>
Makes the "REQUIRED VALUES FORM:" bold.
<FORM METHOD="post" ACTION="http://www.umsl.edu/servlet/FormServlet">
Required element for UMSL forms. Tells form to use FormServlet to process form information.
<INPUT TYPE="hidden" NAME="E_Mail" VALUE="Web_Office@umsl.edu">
Required element for UMSL forms sending email. This tag specifies that the values are sent to the Web_Office email address when the form is submitted. CHANGE THIS TAG TO YOUR OWN EMAIL ADDRESS.
<input type="hidden" name="Conditional" value="http://www.umsl.edu/computing/FormServlet/examples/oops.html">
This tag specifies the HTML file to return if required fields are not completed by the user filling out the form. This tag is optional; if you leave it out, your users will have a default message returned. The value of this tag can be any page you wish to use. Please remember that this file is ONLY shown when a user does NOT fill in a required value on your form.
<input type="hidden" name="URLreturn" value="http://www.umsl.edu/computing/FormServlet/examples/thanks.html">
This tag specifies the HTML file to return when the form is completed successfully. This tag is optional; if you leave it out, your users will see a default message. The value of this tag can be any page you wish to use.
<input type="hidden" name="SMTPreturn" value="/webstuff/htdocs/computing/FormServlet/examples/form2.tmplt">
Required element for UMSL forms. This tag points to a text file that will format the output of the form. With this function you can edit the email file that is sent with this form. See the link above in the FILES REQUIRED section for an example of this file. Please note that the values within the }}{{ brackets are named exactly as they are in the HTML above.
<INPUT TYPE="text" NAME="REQname" SIZE="30"> Your Name (required)<BR>
This tag create the "Your Name" blank on the form. Please note that this field is a REQUIRED field. A field is specified as REQUIRED when the NAME of the field starts with REQ. This field must be filled in when the form is submitted. If this field is blank when the form is submitted, the "Conditional" file will be returned, and the other information on the form will NOT be submitted.
<INPUT TYPE="text" NAME="address" SIZE="30"> Campus Address<BR>
This tag creates the blank spaces in the form. The section on this site called "HTML Tags" will show you the different types of blanks you can use.
<INPUT TYPE="text" NAME="from_address" SIZE="30"> Email Address<BR>
Required element for UMSL forms. This tag specifies the address the email message will be from. This example uses this tag so that the user can enter their own email address in this space. When the output is sent in to the email message, it will appear that the email is coming from the address listed here.
<INPUT TYPE="text" NAME="phone" SIZE="30"> Phone Number<BR>
This tag creates the blank spaces in the form. The section on this site called "HTML Tags" will show you the different types of blanks you can use.
<INPUT TYPE="submit" VALUE="submit">
This tag creates the SUBMIT button. Clicking this button will send the form values to FormServlet, and return the message "Form Successfully Submitted" to the user. Whatever text is used as the VALUE will be what appears on the button.
<INPUT TYPE="reset" VALUE="reset">
This tag creates the RESET button. Clicking this button will clear all answers from the form. Whatever text is used as the VALUE will be what appears on the button.
</FORM>
This tag tells the browser that the form is done, and needs to be placed at the END of your form. No form variables AFTER this tag will work.
</BODY>
Basic HTML tag. This tag tells the browser that the BODY section of the page is closed.
</HTML>
Basic HTML tag. Tells the browser that the HTML is finished.
