Hi
i have a checkbox in my script
<input type="checkbox" name ="pulse[]" value="1" checked>1<br>
<input type="checkbox" name ="pulse[]" value="2" checked>2<br>
<input type="checkbox" name ="pulse[]" value="3" checked>3<br>
<input type="checkbox" name ="pulse[]" value="4" checked>4
and in my program i read the value and i test if the choice was 1 send it to prog1
if it is 2 i send it to prog2 and so...
but i cannot test it if the choice is 1 and 2 or 1 and 3 and so...
`if (isset($_POST['pulse'])){
//do here some validation of array elements!
$pulse1 = array();
foreach($_POST['pulse'] as $p){
$pulse1[] = $p;
}
}
$ser= implode(' ', $pulse1);
$c=count($pulse1);
if($c>=4){
include('full.php');
$netw = empty($_POST['netw'])?null:$_POST['netw'];
$client = empty($_POST['client'])?null:$_POST['client'];
getRecords($date,$date2,$report,$client,$netw,$auto);
}
else{
if($ser==1){
include('daily3.php');
dall2($date,$date2,$report,$auto,$ser);
}
if($ser==2){
include('daily32.php');
dall32($date,$date2,$report,$auto,$ser);
}
.......
if (isset($_POST['pulse'])){
//do here some validation of array elements!
$pulse1 = array();
foreach($_POST['pulse'] as $p){
$pulse1[] = $p;
}
}
$ser= implode(' ', $pulse1);
$c=count($pulse1);
if($c>=4){
include('full.php');
$netw = empty($_POST['netw'])?null:$_POST['netw'];
$client = empty($_POST['client'])?null:$_POST['client'];
getRecords($date,$date2,$report,$client,$netw,$auto);
}
else{
if($ser==1){
include('daily3.php');
dall2($date,$date2,$report,$auto,$ser);
}
if($ser==2){
include('daily32.php');
dall32($date,$date2,$report,$auto,$ser);
}