In this article we will learn about some of the frequently asked HTML programming questions in technical like “html button send post request” Code Answer’s. When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. Error or stack handling on html was simple and easy. An error message with filename, line number and a message describing the error is sent to the browser. This tutorial contains some of the most common error checking methods in HTML. Below are some solution about “html button send post request” Code Answer’s.
using post from any button
xxxxxxxxxx
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
});
html button send post request
xxxxxxxxxx
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>