if($_REQUEST['action'] == 'blah') { dothis(); } else if($_REQUEST['action'] == 'moo') { dothat(); } else { donothing(); }