Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!news-xxxfer.readnews.com!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Content-Type: text/plain; charset="UTF-8" Message-ID: <2832974.UPYZDPpjPl@PointedEars.de> From: Thomas 'PointedEars' Lahn Reply-To: Thomas 'PointedEars' Lahn Organization: PointedEars Software (PES) Date: Tue, 18 Dec 2012 00:54:33 +0100 User-Agent: KNode/4.4.11 Content-Transfer-Encoding: 8Bit X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. Followup-To: comp.lang.php MIME-Version: 1.0 Lines: 28 NNTP-Posting-Date: 18 Dec 2012 00:54:34 CET NNTP-Posting-Host: f0020eda.newsspool3.arcor-online.net X-Trace: DXC=3];@CBGTM5WYI9]OHn9o5^McF=Q^Z^V3X4Fo<]lROoRQ8kF budatlitho wrote: >> I'm struggling with adding to a redirect url - I lose the $id value. What >> am I missing? THANKS in advance. >> >> $redirect_url = "> 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 = " 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. No, they definitely SHOULD: PointedEars -- > If you get a bunch of authors […] that state the same "best practices" > in any programming language, then you can bet who is wrong or right... Not with javascript. Nonsense propagates like wildfire in this field. -- Richard Cornford, comp.lang.javascript, 2011-11-14