Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to execute php function on button click

$('.button').click(function() {
  $.ajax({
    type: "POST",
    url: "some.php",
    data: { name: "John" }
  }).done(function( msg ) {
    alert( "Data Saved: " + msg );
  });
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #execute #php #function #button #click
ADD COMMENT
Topic
Name
1+4 =