I have a set of checkboxes like this:
<?php
if ($_GET["Slot0"] == "OC-192" ) {
echo ('
<label>
Port 0
<input type="checkbox" name="slot0[]" value="Port0" />
</label>
<label>
Port 1
<input type="checkbox" name="slot0[]" value="Port1" />
</label>
<label>
Port 2
<input type="checkbox" name="slot0[]" value="Port2" />
</label>
<label>
Port 3
<input type="checkbox" name="slot0[]" value="Port3" />
</label>
');
}
?>
I have $set0=$_GET["slot0[]"] to capture the checks. But I can't seem to be able to use them....
I want to use the checks in a switch, but I tried switch($set0[]) but that doesn't work. Could someone tell me where I'm going wrong?