CrossLink

Mailing a Form from a Web Site to Yourself

The mailform program allows you to send yourself E-Mail messages containing the responses from an HTML form you've created. Some examples of how you might want to use the mailform program are for a comments form, application or order form.

To use the program, simply create a form (be sure that each input item has a variable name), use the method "POST", and set the action URL to http://www.crosslink.net/cgi-bin/mailform. In addition to the variables you want returned to you, your form must contain three others:

bounceto
The bounceto variable contains the full URL of the web page that should be displayed when the response from the form has been mailed to you.
mailto
The mailto variable contains the name part of your CrossLink email address. So, if your E-Mail address is someuser@crosslink.net, this variable should contains "someuser".
printem
The printem variable contains a comma separated list of the names of the variables whose contents you'd like to receive in the email message. So, if you want the contents of the "name" and "creditcard" variables, printem would contain: "name,creditcard".
email (optional)
The email variable contains the full email address from whom the mail should appear to come. If not given, the mail will appear to come from httpd@crosslink.net.

Example:

Here's a brief example of the underlying HTML code necessary to mail yourself the contents of a form containing name and credit card number.

<FORM METHOD="POST" ACTION="http://www.crosslink.net/cgi-bin/mailform">
Your Name: <INPUT TYPE="text" NAME="name" SIZE=40><BR>
Credit Card Number: <INPUT TYPE="text" NAME="card" SIZE=40><BR>
<INPUT TYPE="SUBMIT" VALUE="Send It">
<INPUT TYPE="hidden" NAME="mailto" VALUE="johndoe">
<INPUT TYPE="hidden" NAME="bounceto" VALUE="http://www.crosslink.net/~johndoe/">
<INPUT TYPE="hidden" NAME="printem" VALUE="name,card">
</FORM>

CrossLink | Customer-Service Home | Search FAQ | Network Status | Contact Tech-Support

CrossLink Internet Services - 5537 C Hempstead Way, Springfield, VA 22151
703-642-1120 | 1-888-4-CrossLink | FAX: 703-642-1258
web@crosslink.net

©1999-2003 CrossLink Internet; all services subject to our Acceptable Use Policy