Jump to content

I need to be able to grab the value passed to my web page using php headers loc


Frank H. Shaw

Recommended Posts

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

 

 

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.