<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>/gk_formmail/static.htm</title>
</head>
<body>
<p>This form demonstrates the 'static' use of <a href="/gk_formmail/">gk_formmail.php</a>.

<p>We illustrate how to:
<br />
1. Use a static HTML form instead of a PHP form page
<br />
2. Create a PHP 'action' handler for the form and include gk_formmail.php from within this handler script.
<br />
3. Name the required gk_formmail configuration file appropriately, in relation to the name of the 'action' script: [action].config.php
<br />
4. Redirect on error / success with 'bad_url' and 'good_url' configurations

<hr>

<p>
<form method="post" action="static.htm.action.php" name="SampleForm">

    <table border="1" cellspacing="5%">
    <tr>
        <td>
        <p>Please enter your email address:</p>
        </td>
        <td><input type="text" name="email" value=""/>
        </td>
    </tr>
    </table>
   <input type="submit" value="Submit" name="submit"/>
</form>
<p>
<hr>
<p>
There are seven files required (click links to view source):
<br />
+ the HTML form: <a href="static.htm.source.php">static.htm</a>
<br />
+ the 'action' handler for the form: static.htm.action.php, which simply calls require('gk_formmail.php');
<br />
+ a config file: <a href="static.htm.action.php.config.php.source.php">static.htm.action.php.config.php</a>
<br />
+ the 'bad_url' handler for the form: static.htm.action.php.bad_url.htm
<br />
+ the 'good_url' handler for the form: static.htm.action.php.good_url.htm
<br />
+ gk_formmail.php (available for licensing): the master 'controlling' script.
<p>
<hr>
This is a modified version of tectite formmail and many requirements have been changed.
<br />
For more information, see comments inside gk_formmail.php
<br />
For more information about tectite formmail, visit
<a href="http://www.tectite.com/">www.tectite.com</a>
</body>
</html>
1