|
Posted by -Lost on 08/22/06 09:36
"Frits van Leeuwen" <Frits.vanLeeuwen@nospam.nl> wrote in message
news:109cb$44eacb91$c2ab6db8$25113@news1.tudelft.nl...
> <?php
> if (isset($_COOKIE['LeeuwendeelTaal']))
> {
> header(sprintf('location:
> http://www.leeuwendeel.info/'.$LeeuwendeelTaal.'/index.htm'));
> exit;
> }
> ?>
I would be interested in hearing from someone else, but I do not think sprintf is being
used correctly here.
Why not just:
header('Location: http://url/' . $variable . '/page/');
Also, I am not entirely sure but you cannot just access a variable in a cookie in that
fashion. For example, at least, it would need to be $_COOKIE['variable'] that you
redirect to. Make sure to read:
http://us3.php.net/manual/en/function.setcookie.php
....in its entirety.
-Lost
Navigation:
[Reply to this message]
|