Your Ad Here

Friday, March 13, 2009

Passing Parameters with Redirect with Header("Location:...

I have a 4 line php file (no other html code in it) that looks like this:

Code:
---------
$parm = $_GET["x"]; //pass this page a parameter in x=
header("Location: http://deluxdeals.com/?parm=" . $parm);
?>
---------
If I navigate to test.php it redirects ok. But if I go to:
test.php/?x=123
I get an error "No input file specified".

I want to call test.php with a parameter which it will insert into the url it's redirecting to. What am I doing wrong?

Read More...
Your Ad Here

No comments: