GeekLabs FormMail.PHP Example/Testing Form
The following items can be embedded in the form, or set in the script:
formname:exampleoptional: useful if you use multiple forms in the same script to store the output in seperate data files
recipient:mikeh@geeklabs.com optional: e-mail address to send forms to. can be hard set in script, which disables being set in forms.
thanks: optional: page to send client to after form submission, defaults to /
referrers:fleeze.net,geeklabs.comrequired: set in script: domains to accept form submissions from
clientid / referrer:38.107.179.211| / just being displayed for diagnostic purposes.
The following is an example form:
emailemail is a special field name. If you use it, the script will check if it appears valid and do a MX record check on the domain. If valid, it will email a copy of the plain ASCII form response to that email address.

name
comments:
radio:Yes - No
checkBox:Yes
   
Minimal Example HTML: (cut and paste and modify)
<form name="contactform" action="/code/gl-formmail.php" method="post">
<input type='hidden' name='formname' value='example'>
<input type='hidden' name='recipient' value='sales@yourdomain.com'><input type='hidden' name='thanks' value='/thanks.html'>

email:      <input type="text" name="email" value="" size="40" maxlength="80"/><br />
name:       <input type="text" name="Name" value="" size="40" maxlength="80"/><br />
comments:   <textarea name="Comments" cols="40" rows="6"></textarea><br />
radio:      <input type='radio' name='agree' value='Yes' checked>Yes - <input type='radio' name='agree' value='No'>No <br />
checkBox:   <input type='checkbox' name='agree2' value='Yes'>Yes <br />

<input type="reset" name="action" value="reset"/>   <input type="submit" name="action" value="submit"/><br />

</form>