PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
You can't (like that) as PHP is server side so you'de have to send another request to the server. So you could do something like <form action="foo.php?func=somefunc" action="post">
Then in foo.php ...
if(!empty($_GET['func']) && function_exists($_GET['func'])){
$_GET['func']();
}
or put the func in a hidden form field and use $_POST['func'] but be sure to check for functions you only want to allow, i.e don't allow exec() etc..