Jump to content

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


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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.