Html Check boxes and PHP
Posted: Mon Jul 28, 2003 1:07 pm
I am trying to make a form with multiple check boxes that can refine a mysql query search. When i try to pass it to the php script with a post, it only passes the last value checked. I'm new to all this so I am not even sure if I am doing it right
here is the html checkbox code
<input name="services" type="checkbox" value="*" checked>
<input name="services" type="checkbox" value="option1"> <input name="services" type="checkbox" value="option2"> <input name="services" type="checkbox" value="option3">
and the php
$services = $_POST['services'];
do i need to make $services an array, and if so would that be @services.
Thanks for the help
here is the html checkbox code
<input name="services" type="checkbox" value="*" checked>
<input name="services" type="checkbox" value="option1"> <input name="services" type="checkbox" value="option2"> <input name="services" type="checkbox" value="option3">
and the php
$services = $_POST['services'];
do i need to make $services an array, and if so would that be @services.
Thanks for the help