in any form that might call your function page include a hidden field. for the sake of the argument call it "what" (or add it as a parameter in your call). on your function page have a switch that uses $_GET['what'] for an argument.
so as part of a form:
Code:
<form>
<input type="hidden" name="what" value="function1" />
</form>
or as part of your call:
Code:
$.post("getpage.php?what=function1",function(data){yada, yada});
and as for getpage.php:
PHP Code:
$what = $_GET['what'];
switch($what){
case "function1":
do something;
break;
case "function2":
do something else;
break;
}
all that said, i don't know how jquery fires that off... it probably won't like you using a get string in a post query... so you'll have to sort that detail. but the theory is there.