Forum Moderators: coopster
$index = 'historypage1';
$url = "http://www.example.org/index-7.php?lodgeindex='$index'";
ob_end_clean();
header("Location: " . $url);
THANKS
Frank H. Shaw
[edited by: jatar_k at 2:25 pm (utc) on Feb. 4, 2008]
[edit reason] please use example.com [/edit]
$index = "historypage1";
$url = "http://www.example.org/index-7.php?lodgeindex='$index'";
ob_end_clean();
header("Location: " . $url);
Is that correct now?
The other thing I would like to understand and address is the security of dong it this way I am using Microsoft windows server using IIS if that makes a difference?
The security of using the $_GET verse the $_REQUEST and what is the impact against hackers.
Is there a better way?
Please explain?
THANKS
Frank H. Shaw
$url = "http://www.example.org/index-7.php?lodgeindex=" . $index . "";
ob_end_clean();
header("Location: " . $url);
// Variables must be seperated how i did above. or atleast i believe so..
then to retrive the variable at the url
"http://www.example.org/index-7.php?lodgeindex=historypage1"
you'd use
$index = $_GET['index'];
// pretty easy i think thats what you need? correct?
$url = "http://www.example.org/index-7.php?lodgeindex=" . $index . "";
Please explain?
THANKS
Frank h. Shaw
[edited by: coopster at 4:57 pm (utc) on Feb. 5, 2008]
[edit reason] please use example.org [/edit]
$index = "historypage1";
$url = "http://www.example.org/index-7.php?lodgeindex="$index;
ob_end_clean();
header("Location: " . $url);
i think that'll do it.. sorry i mess up my quotes all the time and i have hardly a clue what im doing, but i believe you're way in you're 1st post is incorrect, thats just what i see when looking at it.
Sorry to bother you, if you want help see someone more experienced than me, im still newish to php.
K bye.
$url = "http://www.example.org/index-7.php?lodgeindex=" . $index . ""; // This works just fime
ob_end_clean();
header("Location: " . $url);
In my web page I used the $_GET and it allso was passed as it should.
SO I get to the next part what is the security of passing the varable in this manner.
THANKS
Frank H. Shaw
[edited by: coopster at 4:57 pm (utc) on Feb. 5, 2008]
[edit reason] please use example.org [/edit]
By using $_SESSION how much better is it.
I am not passing the page name but a tag to pass to a PHP logical switch that will actual put the web page stuff in a iframe.
THANKS
Frank H. Shaw