Salve ragazzi, una domanda.
Ho questi checkbox e devo recuperare i valori di quelli selezionati.
In Classic ASP bastava fare request.form("fruit") e avevo una cosa del genere:
apples,oranges ecc....
In php $_POST['fruit'] non funge così, mi da solo l'ultimo selezionato.
Come bisogna fare per prendere tutti quelli selezionati ?
Codice PHP:
01.<input type="checkbox" name="fruit" value="apples">apples
02.<input type="checkbox" name="fruit" value="oranges">oranges
03.<input type="checkbox" name="fruit" value="peaches">peaches
04.<input type="checkbox" name="fruit" value="mangos">mangos