I am running a simple test (which will be expanded) getting multiple values from a few checkboxes named services. All I can say is that it doesn't work. I've been doing similar things with JAvaScript for a few years and I've been using PHP for a year and ahalf, just never for this thing. I am quite vexxed, as I do not know why it won't work. Below is my sample code with the form and php to process it. I am working with the code theory here. Like I said, I want to make sure I have no errors in my concepts:::
............ code to get values .............
$services = $_POST['services'];
$count = count($services);
echo $count;
for($i=0; $i < $count; $i++){
echo $services[$i]. " <br />";
}
........Form with checkboxes..............
<form>
<input name="services[]" type="checkbox" id="services[]" value="test1">
test1</p>
<p>
<input name="services[]" type="checkbox" id="services[]" value="test2">
</form>
Thanks in advance.