Posts: 427
Name: Stuart
Location: Glasgow, Scotland
|
Hey
I'm making a site using PHP/MySQL and i want the user to be able to change the skin (colours, images etc) used on the site to make things abit more interesting.
The best i way (..i think) would be to use cookies and when a alternative skin is chosen it would set a cookie to, for example, "blue" and when each page is loaded it would call this value from a cookie and incorporate it into the image file names, and CSS link names so the layout changes.
However, i dont really know where each bit of code should be, or what it should exactly be to be honest...  . E.g. should the 'create cookie' code be a separate page that the form uses as its action, or should i be incorpaorated into each page.
If you understand this at all, any help would be appreciated. If you need something cleared up just post and ill try to clarify it a bit.
Cheers
Stoot
|