Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Atrybut "table" ma zły wpływ na recaptchę ?
Dominator
post
Post #1





Grupa: Zarejestrowani
Postów: 565
Pomógł: 15
Dołączył: 11.10.2010

Ostrzeżenie: (20%)
X----


Witajcie, mam taki problem, otóż mam taki kod (mój (IMG:style_emoticons/default/biggrin.gif) ):

  1. <title>XXX</title>
  2. <head>
  3. <link rel="stylesheet" href="../css/user_register.css" type="text/css">
  4. </head>
  5.  
  6. <div id="header"></div>
  7. <div class="rejuser">Zarejestruj się już dziś !</div>
  8.  
  9. <div id="table">
  10. <div id="text">Wypełnij poprawnie wszystkie pola.</div>
  11. <div id="ottem">
  12. <table style="border: 1px solid black;">
  13. <form method="POST" action="?">
  14. <tr><td>Login:</td><td><input type="text" role="input" name="login"></td></tr>
  15. <tr><td>Hasło</td><td><input type="text" role="input" name="password"></td></tr>
  16. <tr><td>Powtórz hasło:</td><td><input type="text" role="input" name="login"></td></tr>
  17. <tr><td>Adres email:</td><td><input type="text" role="input" name="login"></td></tr>
  18. <tr><td>Kod z obrazka:
  19. <div class="captcha">
  20. <script>
  21. var RecaptchaOptions = { theme : 'white' };
  22. </script>
  23. <?php
  24. require_once('recaptchalib.php');
  25. $publickey = "XXX";
  26. echo recaptcha_get_html($publickey);
  27. ?>
  28. </div>
  29. <input type="submit" name="registerNow" class="btnRegister" value="Zarejestruj się">
  30. </div>
  31. </div>
  32. </div>
  33. </form>
  34. </table>
  35. <?php
  36. require_once('recaptchalib.php');
  37. $privatekey = "XXX";
  38. $resp = recaptcha_check_answer ($privatekey,
  39. $_SERVER["REMOTE_ADDR"],
  40. $_POST["recaptcha_challenge_field"],
  41. $_POST["recaptcha_response_field"]);
  42.  
  43. if (!$resp->is_valid) {
  44. echo "<script type=\"text/javascript\">java script: function c() { document.getElementById('text').innerHTML = 'Invalid recaptcha ! !'; } c();</script>";
  45. } else {
  46. echo "<script type=\"text/javascript\">java script: function c() { document.getElementById('text').innerHTML = 'Valid recaptcha ! !'; } c();</script>";
  47. }
  48. ?>



Gdy usuwam atrybut "<table border="0">" to wszystko jest OK, ale gdy go dodam to ciągle wywala że recaptcha jest zła, co zrobić ?

Ten post edytował Dominator 6.11.2011, 16:41:21
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 14.09.2025 - 23:54