Calling a PHP function using the HTML button: Create an HTML form document which contains the HTML button. When the button is clicked the method POST is called. ... <看更多>
Try using 'init' action hook to handle the submit trigger. Create a new object of your class in the hooked function and call the member function. ... <看更多>
A confirm dialog, with a function attached to the "Confirm"-button. Try me! ... and by passing a parameter, you can execute something else for "Cancel". ... <看更多>