Re: Keeping URL Variables

From: Date: Thu, 17 Apr 2003 20:58:44 +0000
Subject: Re: Keeping URL Variables
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144345@lists.php.net to get a copy of this message
The problem is the sessions get overwritten by the user's default data. As for the hidden fields, that would be just as hard as setting each <a> tag indvidually... Thanks, Stephen Craton http://www.melchior.us ----- Original Message ----- From: "Jonathan Pitcher" <jpitcher@cfedc.com> To: "Stephen" <webmaster@melchior.us> Cc: <php-general@lists.php.net> Sent: Thursday, April 17, 2003 3:53 PM Subject: Re: [PHP] Keeping URL Variables Stephen, Your best bet would be to use sessions: http://www.php.net/manual/en/ref.session.php Jonathan Pitcher On Thursday, April 17, 2003, at 03:46 PM, Stephen wrote: > Hello, > > Is there a way to keep a URL variable every page you go to without > editing the <a> tag's href attribute everytime? > > Basically, I have skin options and depending on what the URL variable > "skinid" is, it shows that skin (I have multiple websites all using > this PHP script). What I want to be able to do is get the value of > skinid, then if the user goes to another page via a link or form, that > skinid is still chosen. What's happening right now is if a user clicks > a link, the skinid in the URL is nolonger set so it defaults to the > default skin. > > Is there a way to always pass the variable to any part of the side > through a global include without having to put it in the URL in the > <a> tag every time? > > Thanks, > Stephen Craton > http://www.melchior.us >

« previous php.general (#144345) next »