erm...
you can use either a hyperlink or a form field.
if its a hyperlink do it like this:
<a href="<? echo $PHP_SELF?action=action_name ?>">Click</a>
or a hidden form field:
<form method="POST" action="<? echo $PHP_SELF ?>">
<input type="hidden" name="action" value="action_name">
<input type="submit" value="Submit">
<?
function function_name()
{
function
}
// place this in your code and it will decide which action to take (you can have more than one case and more than one function!)
switch($action) {
case "action_name":
function_name();
break;
}
?>