when i try to filter all these parameters php only enters in the first if conditions, ignoring all others conditions.
if($t_red<0){
$t_red=0;
}
else if($t_red>256){
$t_red=255;
}
else if($t_green<0){
$t_red=0;
}
else if($t_green>256){
$t_red=255;
}
if($t_blue<0){
$t_red=0;
}
if($t_blue>256){
$t_red=255;
}
if($t_red<0){
$t_red=0;
}