Re: Checkboxes, $_POST array, and switch statement
Posted by ljb on 01/11/06 04:49
jamierphelps@gmail.com wrote:
> I'm having problems with a switch statement that is wrapped in a
>...
> foreach ($_POST['course'] as $key => $value) {
> switch($value)
> case 1:
Needs braces after switch to enclose the cases:
switch($value) {
case 1:
...