Forms
Quick and Easy
Tarleton currently provides a CGI program called Web E-Mail Lite (Copyright © 1997 Keith Gardner, cabernet@mindspring.com) that any Tarleton hosted website can use.
To use Web E-Mail Lite on your Tarleton page you will need to understand how to edit HTML code directly. The following is sample code for a simple comment form. You may cut and paste the code from this page to yours.
Please be sure to read through the code below when you paste in on your page, as there are some parts you may need to edit to fit your needs.
<form method="post" action="https://www.tarleton.edu/scripts/wel.pl">
<input type="hidden" name="to" value="youremail@tarleton.edu" />
<input type="hidden" name="subject" value="Web Feedback" />
<input name="Name" size="20" /> Name<br />
<input name="Email" size="20" /> Email Address
<p>Your Comments<br />
<textarea wrap="virtual" name="Comments" rows="5" cols="40" autowrap="autowrap"></textarea>
<br />
<input type="submit" value="Submit Feedback" />
<input type="reset" value="Clear Form" /></p>
</form>
This code creates a form with a entry box for name, e-mail address and a text area for comments. It also requires that the user enter in their name and e-mail address. It then sends the feedback to the address provided with the subject of Web Feedback. For the feedback to come to your email address, you must change youremail@tarleton.edu in the text to your actual email address.
Note that whatever the user enters into the "Email Address" field will be the email address that you will reply to, if you open the form response and hit "reply". If you leave out the email address field, and reply to a form entry, you will be replying to www@tarleton.edu, and your message will not find its way to your intended recipient. Also, the email "input name" must be "Email" in order for it to function properly.
Going a step further
Optionally, you may choose to dress up your form a little bit. If you leave it alone with the steps mentioned above, upon submission the user will see a generic and boring "Thank You" message. If you want to give them a custom look and feel, that keeps the layout of your web site, you can optionally add the following line of code anywhere between your opening and closing <form> </form> tags.
<input name="next_url" type="hidden" value="Your-Custom-FileName-Here.html" />
On the web services contact form, the next_url hidden input tag is set to this custom page: Submitted-Thanks.htm.
This allows our users to stay within our consistent layout
after submitting a question.
As you can see, it's just another web page that you get kicked off to from the form.