HTML button call php function
Posted: Fri Jun 14, 2002 2:58 pm
How can I make a button in html call a php function. I know in javascript you can do the Onclick method, can this be done with php as well?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<input type="Submit" value"function" name="call">
<?php
if(IsSet($Submit))
{
function();
}
?>Code: Select all
if($call){
//Create Function
myfunction(){
function commands
}
//Call Function
myfunction();
}