Contact Form V1.8
Features
- Fully customizable
- Send text emails
- Built in spam protection
- FREE
Server Requirements
- PHP 4+
How to install
Upload all files to your root directory “/”. The form does not use a database so no need to install.
How to customize
Start with “contactus.php”.
Edit the form to fit your needs and do not remove the “<input type=”hidden” name=”submission_id” value=”<?=$_SESSION[’secret’]; ?>” />” field. This field is for your spam protection.
Edit the “required fields”. Add a word with a “,” for every required field that you would like to name. If you add a field name called “address” then you will add a line right below “ ‘Name‘, ”. It would look like this:
[php]
‘fieldname’ = > ‘Display Name’,
‘address’ => ‘Address’,
[/php]
NOTE: make sure the last line of that array does not have a comma.
For each field you need a $vars, as in the example above. The field name and the $vars for address would look like this:
[php]$vars['address'] = $_POST['address'];[/php]
Move on to the file, “contact.tpl.php”. This file determines how the email will look; in the example above, a $vars was created with $_POST “address”. Add this field like this:
[php]{address}[/php]
Do so for any custom fields needed. Do NOT put HTML in the tpl file, ONLY text.
Download Winn Contact Form V1.8 (3 KB)


