Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html button send post request

<form method='POST' action='myFile.php'>
  <input name='myInput'>
  <button type='submit'>Submit</button> 
  <!--Sends input value to the page set as 'action' parameter. 
	For example a php file.-->
</form>
Comment

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();
	});
Comment

PREVIOUS NEXT
Code Example
Html :: html image goes outside div 
Html :: vertical line in html 
Html :: html downloading a file 
Html :: table broken html after change page 
Html :: ex:html 
Html :: month and year picker bootstrap 
Html :: icon is not showing in html 
Html :: bootstrap 4 spinner not showing 
Html :: scroll to top button css 
Html :: how to align 2 buttons in a div 
Html :: how to write html 
Html :: get directions google maps html 
Html :: ion input form autocomplete 
Html :: modal footer align left bootstrap 
Html :: how to change color in html 
Html :: wordpress add shortcode to html block 
Html :: html metadata 
Html :: git markdown relative link 
Html :: tailwind css navbar 
Html :: changing text colour in html 
Html :: bootstrap 5 tabs 
Html :: html video on end 
Html :: link html 
Html :: og tags 
Html :: mailto like call 
Html :: best place to include script in html layout 
Html :: plantuml font size 
Html :: bootstrap starter template 
Html :: gradient background css for all browsers 
Html :: whatsapp link html 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =