My free PHP Mail Form is a single-page multi-use PHP mail (e-mail) website form that allows your users to send you feedback directly from your website, without the need to customise heavily detailed scripts and panic over security. It’s super simple to install and can work independently or slot right in to your existing site/layout. Simply download, alter the few options at the top and you’re off!
Right-click and select ‘SAVE LINK AS…’ to download:
DOWNLOAD PHP MAIL FORM V2.2
Features
Stuff that comes as standard:
- Meta header and JavaScript injection protection
- Tags stripped and whitespace trimmed
- Validity and length checking on fields
- IP and browser details included in e-mail
- Valid data kept when other errors occur
- Spam word and exploit check
- Common bot blocking to prevent automated mails
- Bayesian style spam filtering
- Compatibility with even the newer versions PHP
- Optional thank you page redirect
- Set your own success/error message styling
- New in 2.2: disable Send button on successful mail send to help prevent spam
- New in 2.2: easily customise required fields
Install Instructions
- Save the contents of mail_form_v2.txt to your computer, and rename the file (e.g. contact.php): MUST be saved as a “.php” file to work
- Customise the variables at the top of the script ($yourEmail = “YOU@YOURWEBSITE.COM”; etc)
- Add your styling and make it pretty — customise the title of the page too.
- Upload… it’s ready!
Adding Fields
To add fields to the form, simply edit the HTML form near the bottom of the file as you normally would:
Example text field
<label for="nickname">Nickname<label>
<input type="text" name="nickname" id="nickname" value="<?php get_data("nickname"); ?>" /><br />
Example drop-down menu
<select name="country" id="country"> <option value="United Kingdom">United Kingdom</option> <option value="United States">United States</option> <option value="Other">Other</option> </select>
Customising the Appearance
Are you having problems customising the appearance of your mail form? Here are some excellent examples that you can use:
- CHouseLive Demo #1 (external)
- CHouseLive Demo #2 (external)
Like this form? Please leave a review on my HotScripts listing!