Answers for "onclick in php html"

1

php button onclick

if(isset($_POST['button1'])) { 
			echo "This is Button1 that is selected"; 
		}
Posted by: Guest on July-28-2021
-1

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

Browse Popular Code Answers by Language