Frank H. Shaw Posted February 4, 2008 Share Posted February 4, 2008 I want to use the header location and pass in the string contained in the varable $url the address of the page i want to go to but also i need to pass the value contained in $index which is a string 'historypage1' My problem is what do i do in my index-7.php to handel the value passed. I need to grab the value passed and test it and display it - the real goal after testing the value I am going to use it in a switch statement in PHP tags in my index-7.php web page. $index = 'historypage1'; $url = "http://www.burningtaper.org/index-7.php?lodgeindex='$index'"; ob_end_clean(); header("Location: " . $url); THANKS Frank H. Shaw Link to comment https://forums.phpfreaks.com/topic/89363-i-need-to-be-able-to-grab-the-value-passed-to-my-web-page-using-php-headers-loc/ Share on other sites More sharing options...
Guardian-Mage Posted February 4, 2008 Share Posted February 4, 2008 First thing first: Learn better grammar and spelling, Firefox even has a build in dictionary Second: Your question was poorly written and you didn't explain it properly Now if I did understand it write, you want to pass two variables to the new page. If this is so, I would recommend using sessions. Google PHP sessions for more information. Link to comment https://forums.phpfreaks.com/topic/89363-i-need-to-be-able-to-grab-the-value-passed-to-my-web-page-using-php-headers-loc/#findComment-457606 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.