Form_To_Mail: The Code
This code can be cut and pasted straight into your HTML page; all you need to do is modify the hidden variables: And set the 'www.example.com' part of the <form> tag to your web address.

If you are using MS Frontpage, Macromedia Dreamweaver, Adobe GoLive or another web development application, please ensure you paste this code into the HTML code window.

N.B. You do not require to upload your own version of form_to_mail.php, the server will automatically load our version.

-------------- Highlight the following code, then copy & paste it into your page -------------

<html>
<head>
<title>Example Form</title>
</head>

<body>

<!-- Begin the form. Change "www.example.com" to your web address throughout this file. -->
<form method="post" action="http://www.example.com/cgi-bin/form_to_mail.php">

<!-- Who to send this form to. Add your e-mail address here. -->
<input type="hidden" name="recipient" value="your_email_address_here">

<!-- Where you want your mail to appear as having been sent from (this must be a valid Freeola hosted e-mail address) -->
<input type="hidden" name="from" value="[email protected]_domainname_here">

<!-- Set a subject for the form for your reference -->
<input type="hidden" name="subject" value="Comments">

<!-- List of required fields, separated by commas -->
<input type="hidden" name="require" value="name,e-mail,message">

<!-- Success redirect - where to go after the form has been sent -->
<input type="hidden" name="success_redirect" value="http://www.example.com/thankyou_page_here">


<!-- Display our form -->
<table width="500" align="center" border="0">
<tr>
<td width="70" valign="top">
<font face="verdana" size="2">
<b>Name:</b>
</font>
</td>
<td>
<input type="text" size="40" name="name">
</td>
</tr>

<tr>
<td width="70" valign="top">
<font face="verdana" size="2">
<b>E-mail:</b>
</font>
</td>
<td>
<input type="text" size="40" name="e-mail">
</td>
</tr>

<tr>
<td width="70" valign="top">
<font face="verdana" size="2">
<b>Message:</b>
</font>
</td>
<td>
<textarea cols="40" rows="7" wrap="virtual" name="message"></textarea>
</td>
</tr>

<tr>
<td>&nbsp;</td>
<td>
<input type="submit" name="submit" value="Send">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
</table>

<!-- Close form tag -->
</form>

<!-- Close body -->
</body>

<!-- End of page -->
</html>