Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> pętla checkbox
Grzegorz02
post
Post #1





Grupa: Zarejestrowani
Postów: 36
Pomógł: 0
Dołączył: 20.09.2014

Ostrzeżenie: (0%)
-----


Witam, tym razem chciałbym zrobić pętle sprawdzającą które checkboxy są zahaczone wpisywać wyniki np. do tablicy i to wysyłać dalej.
Moje pytanie brzmi: jak odwołać się np. do form 1, potem do 2

  1. <form name="1">
  2. <input type="checkbox" id="1">a
  3. <input type="checkbox" id="2">b
  4. <input type="checkbox" id="3">c
  5. <input type="checkbox" id="4">d
  6. </form>
  7. <form name="2">
  8. <input type="checkbox" id="1">a
  9. <input type="checkbox" id="2">g
  10. <input type="checkbox" id="3">h
  11. <input type="checkbox" id="4">d
  12. </form>
  13. <form name="3">
  14. <input type="checkbox" id="1">a
  15. <input type="checkbox" id="2">h
  16. <input type="checkbox" id="3">c
  17. <input type="checkbox" id="4">h
  18. </form>
  19. .
  20. .
  21. .
  22. n
  23.  
  24. <input type="button" value="wyslij">
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 20.08.2025 - 10:12