Can you post some code? I'm not sure what you are trying to do.
From what I read, it makes me think you are looking for something like this:
Add a hidden field called "action" with a value. Then use a switch statement.
<input type="hidden" name="action" value="add">
To process:
switch($HTTP_POST_VARS['action']) {
case "add":
// Code
break;
}