if _GET action act1 echo do act1 elseif _GET action act2 echo do act2

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
if ($_GET['action'] == "act1") {
echo "do act1";
} elseif ($_GET['action'] == "act2") {
echo "do act2 with param1=".$_GET['param1'];
} else {
echo "e.g. html form here";
}