Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

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>
 
PREVIOUS NEXT
Tagged: #onclick #php #html
ADD COMMENT
Topic
Name
6+7 =