html post request on button click code example
Example: using post from any button
$('.btn-logout').on('click', function() {
$('<form action="<?=$url_local?>member/logout" method="post"> <input name="token" value="<?= $obj_user ? $obj_user['token'] : '' ?>"/> </form>').appendTo('body').submit();
});