homepage Welcome to WebmasterWorld Guest from 54.234.141.47
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
reCaptcha form
captcha form verification
bsim

5+ Year Member



 
Msg#: 4473093 posted 1:26 am on Jul 6, 2012 (gmt 0)

I am using Google's recaptcha on a test-form:


This is new to me. I am not sure where to place the private key. I created a hidden field with the pivate key, which didn't work.

The capctha WAS going through no matter what I put in the field. Next added;
<form action="http://www.google.com/recaptcha/api/verify" method="post">

above the GoDaddy form request - it now gives me a "false
invalid-site-private-key" error, but I am not sure adding this second form/post will invalidate the GoDaddy form request.

I have form validation on this, but could not understand from Google's forum exactly what to put and where. Thank you for any help.

Here is the form code:
<form action="http://www.google.com/recaptcha/api/verify" method="post">
<form id="masterworkhome" name="masterworkhome" method="post" action="http://www.example.com/gdform.php">
<table width="448" border="0" cellspacing="0" cellpadding="5">
<tr>
<td width="170"><div align="right">Name:</div></td>
<td width="258" valign="top"><label>
<div align="left">
<input type="text" name="ContactName" id="ContactName" class="labelBox" />
<span class="red">*</span></div>
</label></td>
</tr>
<tr>
<td><div align="right">Phone:</div></td>
<td><label>
<div align="left">
<input type="text" name="Phone" id="Phone" class="labelBox" />
<span class="red">*</span></div>
</label></td>
</tr>
<tr>
<td><div align="right">
Email:</div></td>
<td><label>
<div align="left">
<input type="text" name="email" id="email" class="labelBox" />
<span class="red">*</span></div>
</label></td>
</tr>
<tr>
<td valign="top"><div align="right">Comments or Questions:</div>
<input name="recipient" type="hidden" id="recipient" value="contact@example.com" /></td>
<td><label>
<div align="left">
<textarea name="comments" id="comments" cols="16" rows="5" class="labelBox"></textarea>
</div>
</label></td>
</tr>
<tr>
<td><input name="redirect" type="hidden" id="redirect" value="thank-you.html" /></td>
<td class="redText"><div align="left"><em>*required fields</em></div></td>
</tr>
<tr>
<td colspan="2">
<script type="text/javascript">
var RecaptchaOptions = {
theme : 'clean'
};
</script><script type="text/javascript"
src="http://www.google.com/recaptcha/api/challenge?k=6Ld1ndMSAAAAAN24NPhHABO2quVPVKUDFhmaMrq9">
</script>
<noscript>
<iframe src="http://www.google.com/recaptcha/api/noscript?k=6Ld1ndMSAAAAAN24NPhHABO2quVPVKUDFhmaMrq9"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>
</td>
</tr>
<tr>
<td>&nbsp;</td>
<td><label>
<div align="left">
<label>
<input name="Submit2" type="image" class="submit" id="Submit2" onclick="MM_validateForm('ContactName','','R','Phone','','RisNum','email','','RisEmail');return document.MM_returnValue" src="images/submit.gif" />
<img src="images/spacer.gif" width="22" height="20" border="0" />
<input type="image" name="reset" id="reset" src="images/reset.gif" class="submit" />
</label>
</div>
</label></td>
</tr>
</table>
<br />
<br />
</form>

[edited by: incrediBILL at 1:38 am (utc) on Jul 6, 2012]
[edit reason] fixed URLS, use Example.com [/edit]

 

Kendo

5+ Year Member



 
Msg#: 4473093 posted 2:27 am on Jul 6, 2012 (gmt 0)

I cannot read Google captcha. Usually refreshing up to 20 times to find one that I can at least guess.

Check referrer and a simple Q/A are a better alternative.

bsim

5+ Year Member



 
Msg#: 4473093 posted 4:35 am on Jul 6, 2012 (gmt 0)

I agree. I am not fond of these, either, but the client wants it.

Kendo

5+ Year Member



 
Msg#: 4473093 posted 4:48 am on Jul 6, 2012 (gmt 0)

But what's the point when spam software can read it but our visitor's can't?

tedster

WebmasterWorld Senior Member tedster us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4473093 posted 5:53 am on Jul 6, 2012 (gmt 0)

The thing is, this is actually about reCaptcha, and that is not the same as the ordinary Captcha such as Google uses for their own log-ins. reCaptcha uses two words, side by side. See [google.com...]

It's a project where one of the words is the real entrance test and the other is a scan that has previously stumped OCR software. The guesses on the "stump the OCR" version then make up a kind of crowd-sourcing for the OCR project, but entrance does not depend on success - the word is still an unknown.

reCaptcha characters are relatively easy to read, and the application also offers accessibility to blind users. In my opinion, it is worth working through the technical challenges to use.

bsim

5+ Year Member



 
Msg#: 4473093 posted 6:57 am on Jul 6, 2012 (gmt 0)

@tedster - I do like that part of it - knowing it helps get the old scanned documents translated. Any ideas where my "bug" is? Thank you.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
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