Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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();
	});
 
PREVIOUS NEXT
Tagged: #post #button
ADD COMMENT
Topic
Name
9+4 =