IG Web Media Blogspot

Web designs, makeovers, hosting, email, domains, seo, tips, tricks, funstuff, cool sites and more....


Secure your PHP forms with Captcha's....

When creating any form for your users to complete online, such as a contact form or blog response there is always a possibility of having a non-human visitor trying to complete it. If it's not spammers attempting to hijack your mail() functionality it could be automatic registration systems that are there to stuff your database with junk entries. Captchas are a great way to distinguish real people from machines.
What is a Captcha? It's an acronym for "Completely Automated Public Turing test to tell Computers and Humans Apart"

To get started, go to http://captchas.net/ to register free for an account. You will see that they have provided sample code plus a downloadable class for use with PHP, Perl, ASP, Python and JSP. I use PHP so I can include the PHP class into my contact.php form very simply. Just edit a couple of lines in the contact.php file and hey presto you have a captcha appear on the form that will be served up afresh, everytime the form is accessed.

For a full article on all the aspects of the coding see the Tutorial section of Web Designer mag isse no.133 and capture your clients data with a cool 'Captcha!'...

0 Responses to “Secure your PHP forms with Captcha's....”

Post a Comment



© 2003 - 2007: ITS GUI Web Media: IG Web Media Blogspot |