if ($_REQUEST['refURL']) {
// $_REQUEST['refURL'] is, in this case = '/path/to/my/index.php?blah=foo&action=1'
header('Location: [url]http://[/url]' . $_SERVER['SERVER_NAME'] . $_REQUEST['refURL']);
}
There is a definite value in $_REQUEST['refURL'] and I tested that it exists right up until you get to header(), and then POOF it's gone!
The moment you go to header() it redirects you to:
http://www.mydomain.com/path/to/my/index.php
The query string is completely ignored by header() and I don't understand why!
Can someone please help me with Problem #4 on my day's list of problems I can't seem to fix?
Thanx
Phil