What would be the cleanest way to run the PHP code below but instead of $_GET, using $_POST instead?
<?php
function run_my_function() {
echo 'I just ran a PHP function!';
}
if (isset($_GET['run'])) {
run_my_function();
}
?>
<html>
<body>
<p>Hello there! <a href="?run">Run a PHP function.</a></p>
</body>
</html>