FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Dynamic redirect - losing variable
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Dynamic redirect - losing variable [message #179895 is a reply to message #179894] Mon, 17 December 2012 22:32 Go to previous messageGo to previous message
Christoph Becker is currently offline  Christoph Becker
Messages: 91
Registered: June 2012
Karma:
Member
budatlitho wrote:
> Hi:
> I'm struggling with adding to a redirect url - I lose the $id value. What am I missing?
> THANKS in advance.
>
> $redirect_url = "<meta http-equiv='refresh' content='1;URL=http://www.districtnine.org/login.php?id='".$id." />";
> echo $redirect_url;

You're excluding the $id from the value of the "content" attribute. Try:

$redirect_url = "<meta http-equiv='refresh'
content='1;URL=http://www.districtnine.org/login.php?id=".$id."' />";

You might consider to do the redirect "directly" by sending the
appropriate "Location" HTTP response header, instead of letting the
browser do the redirect.

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Converting file from word.doc to pdf...
Next Topic: Gettting values from URL in PHP 5.4
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 12 20:20:35 GMT 2024

Total time taken to generate the page: 0.07097 seconds