sorry. my English is weak. my code in php:
$code=isset($_GET['q1']) || isset($_GET['q2']);
var_dump($code);
My Question is:
if $code==true
and just one of cases is true,
how to find this case? $_GET['q1']
or $_GET['q2']
?
sorry. my English is weak. my code in php:
$code=isset($_GET['q1']) || isset($_GET['q2']);
var_dump($code);
My Question is:
if $code==true
and just one of cases is true,
how to find this case? $_GET['q1']
or $_GET['q2']
?
if (isset($_GET['q1'])) {
} else if (isset($_GET['q2'])) {
}
You can use something like the above I believe, although there will be other easier ways of doing this.