1 $('.btn-logout').on('click', function() {
2 $('<form action="<?=$url_local?>member/logout" method="post"> <input name="token" value="<?= $obj_user ? $obj_user['token'] : '' ?>"/> </form>').appendTo('body').submit();
3 });
1<form method='POST' action='myFile.php'>
2 <input name='myInput'>
3 <button type='submit'>Submit</button>
4 <!--Sends input value to the page set as 'action' parameter.
5 For example a php file.-->
6</form>