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.. 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']; 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
Archived
This topic is now archived and is closed to further replies.