$action = @$_GET['action']; switch($action) { case "edit": $edit = true; break; default: $edit = false; } if ($edit) { // SHOW THE EDIT FORM } else { // SHOW THE REGULAR CONTENT }