1, the submit method is GET. else if(count($_GET) > 1) { array_shift($_GET); $params = $_GET; } $result = array(); // if params is not empty, then class method with parameters. if($params) $result = $obj -> $method($params); else $result = $obj -> $method(); // Return result serialized. if(!$cExecuteFormReturn) echo serialize($result); else $_SESSION['response'] = $result; ?>