The beneficient folk at Tripod have made it possible to create a form
in your directory and have the results sent to your e-mail address
every time somebody fills it out. Now you, too, can have a survey or
a quiz on your page.
The best way to learn is by example, so we've provided a couple of
sample forms for you to use as starting points. Just paste these
examples onto your Tripod homepage, and they will work!
A Very Simple Form
Here is a very simple form:
And here is the HTML used to produce it:
<FORM ACTION="/bin/mailto" METHOD="POST">
Comment: <INPUT TYPE="TEXT" NAME="comment">
<INPUT TYPE="submit" VALUE="Send it!">
</FORM>
The most important line here is:
<FORM ACTION="/bin/mailto" METHOD="POST">
Both the "ACTION" and "METHOD" parameters should be included exactly
as shown.
A More Elaborate Form
Here's an example of a more elaborate form:
This is a sample, and nothing will happen if you send it in.
Here is how it was created:
<FORM ACTION="/bin/mailto" METHOD="POST">
Name: <INPUT TYPE="TEXT" NAME="name" SIZE="30" MAXLENGTH="30"><BR>
Comments:<BR>
<TEXTAREA NAME="comment" ROWS="3" COLS="40"></TEXTAREA><BR>
How did you find my page?
<SELECT NAME="how">
<OPTION VALUE="search engine">Search Engine</option>
<OPTION VALUE="friend">Friend</option>
<OPTION VALUE="bluebird">A Little Bluebird</option>
</SELECT><BR>
Do you like gorgonzola?
<INPUT TYPE="RADIO" NAME="cheese" VALUE="yup"> Yes
<INPUT TYPE="RADIO" NAME="cheese" VALUE="nope"> No<BR>
<INPUT TYPE="SUBMIT" NAME="submit" VALUE="Send it in!">
<INPUT TYPE="RESET" NAME="reset" VALUE="Reset form">
</FORM>
Once again, the <FORM> tag is the most essential
ingredient. Both the "ACTION" and "METHOD" parameters should be
included exactly as shown. If all goes well, your e-mail address will
be looked up based on the information you provided upon registering
with Tripod and the form results will be mailed to you.
Details for the Advanced User
The "Thankyou" Page
By default, after a person submits a form they are taken to a page
that confirms that the contents of a form have been sent. You have the
option of directing a person to a thank you page of your own design
after they submit a form. This can be controlled through the use of a
hidden variable on the form.
If you specify a variable called "thankyou" on the form, a
page of your choice can be substituted for the default confirmation
page:
<INPUT TYPE="HIDDEN" NAME="thankyou"
VALUE="https://members.tripod.com/~membername/thankyou.html">
You must specify an absolute URL, including "http://" and the full
path to the page.
The "Subject:" Field
You can set the subject line of the e-mail you get. Specify a variable
called "Subject:" (spelled just like the analogous e-mail header) like
this:
<INPUT TYPE="HIDDEN" NAME="Subject:"
VALUE="Results From My Form">
If you want the person who fills out your form to set the subject, you
can use this:
Your point being: <INPUT TYPE="TEXT" NAME="Subject:" SIZE="30"
MAXLENGTH="70">
The "Reply-To:" Field
You can also set the "Reply-To:" header of the e-mail response. This
header is used when you reply to an e-mail message; it contains the
e-mail address to send the reply to (hence "Reply-To:").
You can specify a static "Reply-To:" address if you want (using a
tag similar to the "hidden" subject tag above), but that probably
won't be very useful. Instead, if you want the person who fills out
your form to give you her e-mail address, use HTML like this:
Your e-mail address: <INPUT TYPE="TEXT" NAME="Reply-To:"
SIZE="30" MAXLENGTH="70">
Other Resources
If these examples aren't enough to meet your needs, you can try one of the
forms tutorials available on the web. Or better yet, find a form you like on some site, and use the 'View Source' option on your browser to see
how they made it. Have Fun!