Set the form tags like this...
<form method="POST" action="<?php echo $PHP_SELF ?>">
<input type="hidden" name="action" value="function">
form stuff
form stuff
form stuff
</form>
place your function in the page.
<?
function function_name()
{
global $PHP_SELF, $variable1, $variable2, etc;
function
}
at the bottom of the page add this:
<?
switch($action) {
case "function":
function_name();
break;
}
?>
So your form is saying send to self ($PHP_SELF). The hidden field called action decides which function to use by using the switch statement... and WOALLLAH!!!