homepage Welcome to WebmasterWorld Guest from 107.21.135.68
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
CAPTCHA on Form
captainron19




msg:3674284
 6:30 pm on Jun 13, 2008 (gmt 0)

I sthere a way to utilize a CAPTCHA Image verificator with an existing form mail I am using? My forms are really getting nailed.

I want to keep the existing formmail since I have it in use in so many places and I really like it but I would just like to add some sort of challenge question or image verification to stop the bots.

The current form mail I am using is from <snip>

Thanks in advance

[edited by: eelixduppy at 11:42 pm (utc) on June 13, 2008]
[edit reason] removed URL [/edit]

 

phparion




msg:3674715
 11:40 am on Jun 14, 2008 (gmt 0)

you can add captcha anytime in any script. you can post your code here to get further help on adding captcha in it.

captainron19




msg:3674738
 1:19 pm on Jun 14, 2008 (gmt 0)

Which code would you need? The actuall form coding or the PHP file that processes the form?

ag_47




msg:3674877
 6:56 pm on Jun 14, 2008 (gmt 0)

Just search for captcha tutorials. Adding it to the form is very easy.
Alternatively you could try adding an invisible input field, not for bots, and if it gets filled out don't do anything. You'd use CSS for this, ex:

Add to the form:
<input type="text" name="email_2" id="email_2" value="" />

In your styles add:
input#email_2{ display:none; }

When validating the form, if email_2 has been filled out take action..Since only bots would see this field.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved