Do you have a value for the submit? And also, the value would be case sensitive, I think. But you could post to a switch?
If you call the switch $run_control, your button would look like this:
<input type="submit" name="run_control" value="Submit form!>
And the php in the recieving end:
switch ($run_control) {
## The case for this form ##
case "Submit form!":
hereYou($do_the_stuff);
break;
## Another case - another output ##
case "Submit me!":
hereYou($do_the_other_stuff);
break;
default:
hereYou($do_the_default_stuff);
}
Thus you just need one page for multiple actions, and your script would be truly multi-purpose 😉
There's no limits to possible cases, and you only need to set the value of the submit-button exactly as the case in the switch.
knutm