Hi, Tuesday, December 2, 2003, 7:17:58 AM, you wrote: r> Hi all,
r> I have this in a template: r> $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; r> header("Location: $redirect"); r> Only, nothing happens when this code is executed. Nothing. It gets r> completely ignored. r> I even tried: r> $redirect = "viewclient.php?id={$_REQUEST['id']}&foo=bar"; r> echo $redirect; r> header("Location: $redirect"); r> to try and throw an error, but all that happens is the value of r> $redirect gets sent to the screen and then rest of the page is r> displayed. I know the code block is getting executed, but I have no r> idea WHY the header() function is not doing its job. r> Any thoughts? Please CC me on the post since I am on the digest. r> Thanks Try adding exit; after the header call. -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php