how does the Button of Html trigger the method of php?
<?php
// First, include Requests
include("../library/Requests.php");
// Next, make sure Requests can load internal classes
Requests::register_autoloader();
function get_data(){
// Now let"s make a request!
$request = Requests::post("http://103.200.32.76:8000/api/groups/list/", array(), null);
// Check what we received
var_dump($request);
}
?>
<button @on="get_data()"></button>
this triggers the js method. How can I get it to trigger the PHP method?