I have a page on the url www.example.com/some/info.
This page sends a form to a PHP script.
Is there a way to get this url in the PHP script so that I can redirect to it when the script executes?
I tried $_SERVER['REMOTE_HOST'], but got an undefined index exception.
Edit: I am using Apache's rewrite module so that all the requests are redirected to index.php which then handles resolving them.