passing a variable to a redirected page
Posted: Wed Sep 09, 2009 8:20 pm
I need to pass a variable from the current page to a redirect of the same page.
For instance, submit.php?step=10 is where I would need to set the variable. Then I redirect back to submit.php and check if that variable is set.
I tried using:
with:
That did not work, but I'm not sure that's the best way of doing things. In short, I simply want to set a variable that I can access from a page that I redirect to.
What are my options for doing this?
For instance, submit.php?step=10 is where I would need to set the variable. Then I redirect back to submit.php and check if that variable is set.
I tried using:
Code: Select all
http_redirect("submit.php", array("edited" => 1, true, HTTP_REDIRECT_PERM);
Code: Select all
isset($_SESSION['edited'])
What are my options for doing this?