3 possible solutions:
1. use 2 scripts
2. adjust your script so it works with $_GET and $_POST
3. use $_REQUEST, wich is $_POST, $_GET and $_COOKIE all in one.
you could also simply use the "normal variables" instead of the global arrays, since there available to you also. But I don't seem to like that method anymore lately....