Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [PHP] Akceptacja regulaminu
Forum PHP.pl > Forum > Przedszkole
Eset96
Witam mam takie pytanie, jak przerobić kod poniżej, aby w momencie gdy zaznaczymy checkbox, button zaloguj byłby aktywny, a gdy wartość będzie 0, to nie będzie można go kliknąć.

  1. <form action="index.php?site=zaloguj" method="post">
  2.  
  3. <table style="width: 350px; height: 69px;">
  4. <thead> <tr>
  5. <td
  6. style="background-color: rgb(204, 0, 0); color: rgb(255, 255, 255); text-align: center;"><b><small>Panel
  7. dostępu:</small></b></td>
  8. </tr>
  9. </thead>
  10. <tr>
  11. <td style="background-color: rgb(242, 242, 242);" ;=""
  12. color="" rgb(153="" 153=""><br><small><small><center><b>Identyfikator:<br>
  13. <input name="login" size="25" maxlength="128"
  14. id="fbrp__29" type="text"> <br><br>
  15. Hasło:<br>
  16. <input name="haslo" id="fbrp__30_1" value=""
  17. size="25" maxlength="128" type="password"> <br>
  18. <br>
  19. <input value="regulamin" name="checkbox"
  20. type="checkbox"> Korzystając ze sklepu internetowego akceptujesz <a
  21. href="regulamin">regulamin.</a><br>
  22. <br>
  23. <input class="cms_submit fbsubmit"
  24. name="zaloguj" id="cntnt01fbrp_submit"
  25. value="Zaloguj" type="submit"></center></small></small><br></td>
  26. </tr>
  27. </tbody>
  28.  
  29. </form>


Pozdrawiam
fiszol
JavaScript z eventem on click na checkboxie i usunięciem atrybutu disabled z submita.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.