GetId(); $object_id = (int)$_REQUEST['object_id']; $date = (int)$_REQUEST['date']; $comment = $_REQUEST['comment_client']; $_SESSION["addRegisterType"] = 'add'; $id = Register::AddClientRecord($clientId, $object_id, $date, $comment); $_SESSION["addRegister"] = $id; echo $id;