Right now I'm using the following code to get the value of $action, since I'm either mixing GET/POST within my project OR am not sure about how the template will be setup ( yet ). $action = (empty($_POST['action'])) ? $_GET['action'] : ""; Is there another way of acomplishing the same thing?