2011-08-05 5 views
0

POST 요청 또는 API에 대해 알지 못하기 때문에 더 명확하게 만들 수 있습니다.reCAPTCHA api의 게시물 요청 부분에 대한 도움이 필요합니다.

내 사이트에 reCAPTCHA를 추가하는 것에 대한 설명을 진행할 예정이지만 확인 부분에 머물러 있습니다. 여기에 붙어있는 부분이 있습니다 : http://code.google.com/apis/recaptcha/docs/verify.html

POST 요청을하는 법을 모르겠습니다. 누군가가이 부분을 나에게 설명하면 크게 도움이 될 것입니다.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> 
<title>Untitled Document</title> 

<body> 

<!-- ... your HTML content ... --> <form action="" method="post">  <!-- ... your form code here ... -->  <script type="text/javascript"  src="http://www.google.com/recaptcha/api/challenge?k=public key">  </script>  <noscript>  <iframe src="http://www.google.com/recaptcha/api/noscript?k=public key"   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>  <!-- ... more of your form code here ... --> </form> <!-- ... more of your HTML content ... --> 

</body> 
</html> 
+0

왜 PHP/java/perl/.. recaptcha 라이브러리를 사용하지 않으시겠습니까? html을 생성하고 입력 된 코드를 확인하십시오. – blejzz

+0

내 서버가 PHP를 처리 할 수 ​​없습니다. 그래서 나는 HTML과 자바 스크립트에 붙어있다. – user671891

답변

0

하나가 테 reCAPTCHA를 PHP/펄 /의 ASP/.. 플러그인을 사용하거나를 사용 : 여기

http://code.google.com/apis/recaptcha/docs/display.html#Standard에서 직접 복사 지금까지 내 사이트에있는 코드입니다 recaptcha ajax 라이브러리는 자바 스크립트로 모든 것을 처리하므로 서버 측 스크립트가 필요하지 않습니다.

관련 문제