The Most Active and Friendliest
Affiliate Marketing Community Online!

“Adavice”/  “1Win

PHP Contact Us Script

D

dman_2007

Guest
Here is a PHP contact us script. Contact.php file is a wrapper around contact-us.php file. You can add a working contact us form in any page of your site by just including contact-us.php at appropriate place. Here's a working demo.
 

Attachments

  • php-contact.zip
    2.7 KB · Views: 32
This looks like a really good script but what is there to stop Spambots from using it like an Captcha image etc ?
 
secure images are so tedious for the users - you can protect a form via js by dynamically building the submit handler / events and setting the action/target.

downside to that approach is that you need to have JS enabled to use the form - for my money - worth it. you should be doing your form validation in javascript anyway (even if the PHP script has a fallback)
 
firstly thats a cool little script, very clear on what your clean and tainted data is etc

im a believer in defence in-depth, if your going to validate in JS you MUST still validate in php, validation in JS is a cool idea as you can make sure the data sent to your servers are maybe as you expected... but all you have todo is use httpliveheaders to figure out the names of the form vars placed by the js and then hard code a form or just send a modifyed http request via the httpliveheaders tool... effetivley bypassing your JS validation... not cool
 
MI
Back