Answers for "button onclick function php"

-2

onclick in php html

<!DOCTYPE HTML>
<html>
<?php
  function runMyFunction() {
    echo 'I just ran a php function';
  }

  if (isset($_GET['hello'])) {
    runMyFunction();
  }
?>

Hello there!
<a href='index.php?hello=true'>Run PHP Function</a>
</html>
Posted by: Guest on July-20-2021

Code answers related to "button onclick function php"

Browse Popular Code Answers by Language