HI i am beginner in PHP and really need some help
<head>
<title>My Variables HTML Form</title>
</head>
<body>
<h4>My HTML Form</h4>
<?php
function display()
{
echo "you called display function";
}
function profile()
{
echo "you called Profile function";
}
?>
<form action="<?= $php_SELF ?>" method="POST">
<input type="button" name="action" value="submitted" onClick="<? display() ?>" />
<input type="button" name="submit" value="submit me!" onClick="<? profile() ?>" />
</form>
</body>
</html>
it could not work at all. what i want is to call the function according to what i have clicked.
how to solve my problem?
thanks