MailForm will send mail to you from any form you design. The form may be designed any way you like, with any combination of field types. There are a few tags (see below) that must be present in your form for the program to send mail to you. See the example form.
Input tags you may use:
Form tag
Designing your Form
In your HTML Form there are tags that must be present in the form
for the program to send mail to you.
Note: The fields that start with
XX- CAN NOT be changed and must be exactly as shown below.
Tag Names that CAN NOT be changed
You do not have to use the tags for users Name and users E-Mail
Address . . . but
If the tags are used on your form, they MUST be exactly as shown below. You
may however, change the size=40.
Hidden tags that must be present
The mail Subject
<input type="Hidden" name="XX-subject" value="My Mail Subject">
Who to send the E-Mail to
<input type="Hidden" name="XX-send-to-email" value="you@your-server.com">
Optional Hidden tags
Setting Up Required Fields
<input type="Hidden" name="REQUIRED"
value="XX-name,XX-email,Comments">
To make a form field Required to be filled in by the user use the
tag above in your form. To define which fields you want to require, put
the name of the field
( XX-name for the users Name Field )
in the
Value="XX-name" portion of the REQUIRED tag. To
Require more than one field, place a comma (,) between the fields you want
to require.
Example - value="XX-name,XX-email,Comments" will require
the users Name, users E-Mail, and Comments.
Important: Use only one REQUIRED tag in your form.
Redirection the user to ?
<input type="Hidden" name="XX-redirect-to-url" value="http://www.rlaj.com">
Using this tag in the form, you can "redirect" the user to another page after they have filled in your form. If you do not use this tag, the user will see a "Thank You" screen after the form is submitted.
Example Form HTML Code
<html>
<head>
<title>Credit Card Order Form </title>
</head>
<BODY BGCOLOR="#FFFFF1">
<center>
<h2>Credit Card Order Form </h2>
</center>
<P>
<form method="POST" action="/cgi-bin/preformat/ultra-mail.pl">
<input type="Hidden" name="XX-subject" value="Ranson's Mail Subject">
<input type="Hidden" name="XX-send-to-email" value="you@your-server.com">
<input type="Hidden" name="XX-redirect-to-url" value="http://www.rlaj.com">
<input type="Hidden" name="REQUIRED" value="XX-name,XX-email,Comments">
<P>
<B>Select a Product to Order
<BR>
<SELECT name="Product_Ordered">
<OPTION VALUE="Product 1" selected>Product 1 in Red and White
<OPTION VALUE="Product 2">Product 2
<OPTION VALUE="Product 3">Product 3
<OPTION VALUE="Product 4">Product 4
</SELECT>
<P>
* Name as it appears on card<BR>
<input type="text" name="XX-name" size=40>
<P>
* Address<BR>
<input type="text" name="address" size=40>
<P>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR>
<TH >City</TH>
<TH >State</TH>
<TH >Zip</TH>
</TR>
<TR>
<TD ><input type="text" name="city" size=25></TD>
<TD ><input type="text" name="state" size=4></TD>
<TD ><input type="text" name="zip" size=10></TD>
</TR>
</TABLE>
<P>
*Please Check Card Type.
<UL>
<input type="radio" name="card" value="mastercard"> Master Card
<input type="radio" name="card" value="visa"> Visa<BR>
<input type="radio" name="card" value="amax"> American Express
<input type="radio" name="card" value="discover"> Discover
</UL>
<P>
<TABLE CELLPADDING=3 CELLSPACING=0>
<TR>
<TH>* Card Number</TH>
<TH>* Exp Date</TH>
</TR>
<TR>
<TD><input type="text" name="Card_no" size=20></TD>
<TD><input type="text" name="Exp_date" size=4></TD>
</TR>
</TABLE>
<P>
* E-Mail Address (required)
<BR>
<input type=text name=XX-email size=30>
<P>
* Phone in case I need to call.<BR>
<input type="text" name="phone" size=30>
<p>
<H3>Additional Instructions</H3>
* Please be as detailed as possible for what you would like to order.<BR>
<textarea name="order" WRAP=physical COLS=60 ROWS=4>
</textarea>
<P>
<input type="submit" value=" Send Order "> * <input type="reset">
</form>
</body>
</html>