quindi

<?

if (isset($_GET['action'))
$action=$_GET['action];
else
$action='';

....

e poi fai i tuoi controlli.

?>