Downloadable PHP Contact Form
September 3rd, 2010Haven’t updated this blog for ages but here is a new post about forms
Contact forms make it easier for the users of your website to get support as inexperienced users may not understand how to email or they may not even have an email account they can use or access may be inpractical at the time they need to get support. They also let you as the business owner keep your email private and protected against spammers.
Contact forms are hard and time consuming to write correctly and to make fully hacker proof and inexperienced programmers may mess this up. Also they need to correctly inform the user of where they have gone wrong with their data entry so they dont face any problems when getting support.
I have presented a simple contact form for you to use on your site which allows a degree of customization.
Implementation Instructions
- Extract the downloaded zip file and upload the files to the root of your web server
- Edit includes/config.php with your settings
$comment_field_labels = array(“Name:”, “Email Address:”, “Message:” ); //The number of fields and fields descriptions$comment_required_field_array = array(0,1,2); //the fields that are required 1 = 0 in this case all are required
$comment_field_maxlength = array(50,50,256); //maximum characters that can be entered into each field
$email_to = “support@domain.com”; //the address to email to (your address)
$site_title_text = “Your Site”; //name of the site
- Customize ‘contact.php’ with your company header and footer
- You are done!
Enjoy the time you have saved. Download the form files below:










