ENGLISH Version
Nobody seems to have solved this problem without javascript or ajax
You can also do the following.
Save the php file with functions and then submit them to your page index
Example
index.php
<div>
<?php include 'tools/edit.php';?>
<form method="post">
<input type="submit" name="disable" value="Disable" />
<input type="submit" name="enable" value="Enable" />
</form>
</div>
Tools.php (this can be any name, note that it is stored in the lame tools folder)
<?php
if(isset($_POST['enable'])) {
echo "Enable";
} else {
}
if(isset($_POST['enable'])) {
echo "Enable";
} else {
}
?>
source
share