Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #7827
| From | Christoph Becker <cmbecker69@gmx.de> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Dynamic redirect - losing variable |
| Date | 2012-12-17 23:32 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <kao6fb$otm$1@speranza.aioe.org> (permalink) |
| References | <20d8e05a-6cb1-4b19-8b2f-58346c116352@googlegroups.com> |
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
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Dynamic redirect - losing variable budatlitho@gmail.com - 2012-12-17 14:23 -0800
Re: Dynamic redirect - losing variable Christoph Becker <cmbecker69@gmx.de> - 2012-12-17 23:32 +0100
Re: Dynamic redirect - losing variable Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-12-18 00:54 +0100
Re: Dynamic redirect - losing variable budatlitho@gmail.com - 2012-12-18 06:44 -0800
csiph-web