HI
i have a form that contains checkboxes i put a variable as array and i test the values in this array
switch($pulse) {
case $pulse[0]==1 && $pulse[1]==2:
include('onetwonet.php');
twonet($date,$date2,$report,$netw,$auto,$pulse,$client);
break;
case $pulse[0]==1 && $pulse[1]==3 :
include('onethreenet.php');
threenet($date,$date2,$report,$netw,$auto,$pulse,$client);
break;
case $pulse[0]==1 && $pulse[1]==4:
include('onefournet.php');
fournet($date,$date2,$report,$netw,$auto,$pulse,$client);
break;
case $pulse[0]==2 && $pulse[1]==3:
include('twothreenet.php');
twothreenet($date,$date2,$report,$netw,$auto,$pulse,$client);
break;
case $pulse[0]==2 && $pulse[1]==4:
include('twofournet.php');
twofournet($date,$date2,$report,$netw,$auto,$pulse,$client);
break;
case $pulse[0]==3 && $pulse[1]==4:
include('threefournet.php');
threefournet($date,$date2,$report,$netw,$auto,$pulse,$client);
break;
case $pulse[0]==1 && $pulse[1]==2 && $pulse[1]==3:
include('onetwothreenet.php');
twothreenet($date,$date2,$report,$netw,$auto,$pulse,$client);
break;
}
the line 27 does not work for me when i select 3 1,2,3 normally onetwothreenet.php is executed but it is onetwo.php who is executed..
is there a problem in my script
thanks