thara Posted July 22, 2012 Share Posted July 22, 2012 Hi everyone... I would like to know... What is the way to pass variable values when a page is redirecting? I want to bring some variable values from some page to my redirecting page. I can append values to redirecting url.. but it is ugly method.. Quote Link to comment https://forums.phpfreaks.com/topic/266068-passing-variable-values-when-a-page-is-redirecting/ Share on other sites More sharing options...
lukep11a Posted July 22, 2012 Share Posted July 22, 2012 Try this on the page where the variable has been defined: session_start(); $_SESSION['whatever_name'] = $variable_name; And then call the variable on the new page with: echo $_SESSION['wahtever_name']; Quote Link to comment https://forums.phpfreaks.com/topic/266068-passing-variable-values-when-a-page-is-redirecting/#findComment-1363427 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.