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> </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]