hi,
u can call a php function by settin some http-var and then checkin this inside your script, e.g.
The form
<form method="POST" name="form1" action="run.php">
<input type="hidden" name="action" value="func1" />
<input type="submit" value="Run function 1">
</form>
<form method="POST" name="form2" action="run.php">
<input type="hidden" name="action" value="func2" />
<input type="submit" value="Run function 2">
</form>
The php script check.php
if($_POST["action"] == "func1")
{
// Perform function 1
echo "function 1 doin somethin";
}
else if($_POST["action"] == "func2")
{
// Perform function 2
echo "function 2 doin somethin";
}
else
{
echo "no valid action given";
}
Now, when u click "Run function 1", u'll see the text for func1 etc. So u got the basic idea?
hth