It sounds like you want one php to handle the input from many different forms. That is easy to do, but then you need it to know which form provided the data. There are two simple ways to do this:
1. Add a hidden input field to each form with the same name but different values on each form, so you can always refer to that input field to see which form it was.
<form action="mycommonaction.php" method="get">
...
<input type="hidden" name="formid" value="form1">
...
</input></form>
$originalform = $_GET['formid'];
if ($originalform == 'form1')
...
2. Look at the Referer header in the request to see which form was used.
$originalURL = $_SERVER['HTTP_REFERER'];
Either of these will work, but the hidden input field is probably a bit easier to manage.
Cheers,
Peter
If this answers your question, mark it accepted. Vote anyway.