technology.uaa.alaska.edu
KNOWLEDGE BASE
 
What is a username?
Find your UA ID
 
 Execute Search 

Knowledge Base Search

Hardware
HOME > KNOWLEDGE BASE > COMPUTER ARTICLES > WEB > HOW TO USE FORMAIL.CFM 

How to Use formail.cfm
Article Number: 1351

Creating a form on a personal webpage is very simple. Copy and paste the following HTML code between the <form> and </form> tags in the body of your webpage:
<form action="http://www.uaa.alaska.edu/cgi-bin/formail.cfm" method="post">

<input type="hidden" name="recipient" value="yourname@uaa.alaska.edu"> <input type="hidden" name="subject" value="Feedback from form"> <input type="hidden" name="redirect" value="http://www.somewhere.com"> Name: <input type="text" name="name"><br> Email: <input type="text" name="email"><br> Message: <textarea name="message" cols="40" rows="4"></textarea><br> <input type="submit" name="Submit" value="Submit"></form>
The first input tag is named recipient, in which you put your email address (where you want the user to send their comments) for the value. This is a hidden tag, as it would not show on the website when viewed. The second input tag is named subject, which would have the value "Feedback from form", meaning this text will be in the subject of the email when it is sent to your email box. This field is also be hidden. Another optional input tag may be used to redirect the user to a site (in this example, http://www.somewhere.com) after the submit button has been clicked.

The required fields in this form are "Name" and "Email", in which the user enters their name and their return email address, so that you may reply back to them if need be. The "Message" field is also a required field, in which the user enters their feedback. The last input tag in the form is a submit button, which is clicked once to send the email.

Note: The "Name", "Email", and "Subject" fields are absolutely neccessary to include in your code! Within the <form> tag, be sure to have the action = "http://www.uaa.alaska.edu/cgi-bin/formail.cfm" and for the method = "post" (See example above for the correct format of code).

Following is a screenshot of the above HTML code.
Related Articles
Number Title
No Articles Found

Home    Computer Services    Telephone Services    AV Services    Forms & Requests    Knowledge Base    Administration   

© Copyright 2005, University of Alaska Anchorage | Feedback
3211 Providence Drive • Anchorage, Alaska • 99508
(907) 786-4646 or Toll Free (877) 633-3888
callcenter@uaa.alaska.edu