2011-03-25 20 views
1
<?php 
session_start(); 
require_once('recaptcha/recaptchalib.php'); 
$publickey = "API_KEY"; // you got this from the signup page 
?> 
<script type="text/javascript" src="javascripts/jquery.form.js"></ 
script> 
    <script type="text/javascript"> 
     $(document).ready(function() { 
       $('#inquiry').ajaxForm({ 
         target: '#error', 
         success: function() { 
         $('#error').fadeIn('slow'); 
         } 
       }); 
     }); 
     var RecaptchaOptions = { 
       theme : 'clean' 
     }; 
    </script> 
<div class="top_area">Inquiry Form</div> 
    <div id="search_area"> 
    </div> 
<div style="overflow-y: hidden;"> 
<form name="inquiry" id="inquiry" action="asadadasd.php" 
method="post"> 
<div id="error"></div> 
<table align="center"> 
<tr> 
     <td valign="top" align="right"></td> 
     <td> 
       <?php 
        echo recaptcha_get_html($publickey); 
       ?> 
     </td> 
</tr> 
<tr> 
     <td valign="top"></td> 
     <td> 
       <input type="submit" id="submit" name="submit" value="Submit" 
style="height: 30px; background: #ab2220; border: 2px #fff solid; 
color: #fff;" /> 
     </td> 
</tr> 
</table> 
</form> 
</table> 
</form> 
</div> 

這是我到現在爲止,但驗證碼插件顯示不出來的代碼 我思念的東西出現? 謝謝你們, 你真是太棒了驗證碼不對Facebox

+0

是字面上的代碼,您正在使用或已更改了公鑰變量只是API_KEY這個網站? – m4rc 2011-03-25 12:10:31

回答