Próbuję utworzyć formularz za pomocą PHP i nie mogę znaleźć samouczka na temat tego, czego potrzebuję, więc myślę, że pytam tutaj.Otrzymuj dane POST z wielu pól wyboru?
mam wiele opcji pól wyboru na mojej stronie ...
<li>
<label>What service are you enquiring about?</label>
<input type="checkbox" value="Static guarding" name="service">Static guarding<br>
<input type="checkbox" value="Mobile Patrols" name="service">Mobile Patrols<br>
<input type="checkbox" value="Alarm response escorting" name="service">Alarm response escorting<br>
<input type="checkbox" value="Alarm response/ Keyholding" name="service">Alarm response/ Keyholding<br>
<input type="checkbox" value="Other" name="service">Other<input type="hidden" value="Other" name="service"></span>
</li>
Nie jestem pewien jednak, jak zebrać wszystkie wyboru wartości za pomocą metody POST?
przypadku korzystania
$service = $_POST['service'];
mogę dostać tylko „inne” powrócił