Features
- Fully customizable
- Make your own custom fields
- Sends TEXT emails
- Sends 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
First let’s 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, if you do not need SPAM protection remove it but I would NOT suggest it.
Next, we will edit the “required fields”. All you have to do is add a like with a “,” for every required field that you would like. Where am I getting the name for this you ask? Use your field names you just made! If you adding 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.
After that we have $vars to make! For each field you need a $vars, like in our example above for address and “address” as the field name the $vars would look like this:
[php]$vars['address'] = $_POST['address'];[/php]
Ok, moving on to the file “contact.tpl.php”. This file is what the email will look like, in the example we just did with the $vars you named a $vars with the $_POST “address”. So now to add this field to the tpl we would just add it like this:
[php]{address}[/php]
Do so for any custom fields that you want. Do NOT put HTML in the tpl file ONLY text.
Download Winn Contact Form V1.8 (3 KB)

