So, I have this site...and I got bored so I set up four different color schemes that the user can choose. I have PHP scripts that choose which CSS documents to read based on a URL encoded variable('season').
This site is pretty small, so it is just one PHP index file that includes different files based on another URL encoded variable ('page').
My problem is, if I make a link to a different page:
It will change the 'page' variable, but it also does away with the 'season' variable.
How do I switch pages while keeping the same color scheme?
Should I just have PHP write in the existing value in every link(see following code), or is there an easier way?
Thanks for your help.
This site is pretty small, so it is just one PHP index file that includes different files based on another URL encoded variable ('page').
My problem is, if I make a link to a different page:
| Code: |
|
<a href="&page=omg">Sub Link</a> |
It will change the 'page' variable, but it also does away with the 'season' variable.
How do I switch pages while keeping the same color scheme?
Should I just have PHP write in the existing value in every link(see following code), or is there an easier way?
| Code: |
|
<a href="&page=omg&season=<?php echo $_GET['season']; ?>">Sub Link</a> |
Thanks for your help.
