This is documentation for using the mailto.pl script from your World home page. If you're not familiar with how cgi scripts work in general, you'll want to look at the source of this page along with the rendered version (what you see in a web browser.) This is a minimal example that doesn't show any of HTML's special form features, it is intended to demonstrate the minimal requirements to get the mailto.pl script to work. If you're using the Wolrd shell account, can look at the source with:

	world% more ~wexample/public_html/mail.sample.html
and/or you can copy of this page (to use as a basis for experimentation) to your public_html directory with the UNIX copy command, "cp":
	world% cp ~wexample/public_html/mail.sample.html ~/public_html

If you're using Netscape, just choose "View" from the top menu; then "Source" from that dropdown to see the html source code of this page. Other browsers have similar features, contact World technical support if you can't find it in your browser.

Below are the four elements you need for the form to work at all. You can't see them on the rendered page, you have to view the source.

Above are lines that make the form work; you can't see them until you view the source, and your visitors won't see them on your form. The field names must be "to", "from", and "body". All those fields are necessary, they have to have values or the submit button will generate an error. The field names are lower case; upper case won't work.

Key points

Below is trivial area for input, just to make this a valid form.


Fill in the two fields with top secret information:

Please enter some text

And enter something for line 2

Lines above would result in text being sent to you labled "firstlinge" and "linetwo," respectively. The two buttons below are set to say "Clear" and "Send" in the "value" field. They could as easily be labled "Start over" and "Submit", the text that appears is up to you. However, the type attribute of the buttons is important, the type must be "reset", for a button to clear all the values of the form and start over, and "submit" to call the program.


Some Options