Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]checkbox (post)
-mirek99-
post
Post #1





Goście







mam kawalek kodu w formularzu
<input type="checkbox" name="uzaleznienie" value="internet">internet
<input type="checkbox" name="uzaleznienie" value="alkohol">alkohol
...

a na kolejnej stronie
$uzaleznienie = $_POST['uzaleznienie'];

Jak sprawdzić ze wszystkie checboxy są zaznaczone?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
-mirek99-
post
Post #2





Goście








Mam tylko dwa checboxy
<input type="checkbox" name="uzaleznienie[]" value="internet">internet

<input type="checkbox" name="uzaleznienie[]" value="alkohol">alkohol
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: 10.10.2025 - 10:10