Answer the question
In order to leave comments, you need to log in
Handling get or post parameters in PHP
In php I am zero. There is a page with buttons that link to the same page by passing 2 get parameters.
How to execute the function (exec(whattotam)) depending on these parameters in PHP?
Answer the question
In order to leave comments, you need to log in
if(isset($_GET['param1']) && $_GET['param1'] == 'value1'){
exec(...);
}
It turned out a little easier.
$channel=($_GET['channel']);
$command="-".($_GET['command'])."_ch";
$level=($_GET['level']);
exec("noolite -api $command $channel $level");
Actually, I was missing the construction ($_GET['channel']).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question