ruralscot Posted April 11, 2010 Share Posted April 11, 2010 Ok i have the basics of the site done, but on the site I have five colour options. There are five little buttons depicting the change in the colour.css Hard to explain this one actually. Ok at present the site is using colour.css, but I would like when the visitor clicks one of five little boxes that the colours change permanently...so I have colour_blue.css, colour_purple.css etc. How can I get php to do this, or is it simply a case of making 5 versions of the same page?? Think i just lost myself with that question Quote Link to comment https://forums.phpfreaks.com/topic/198247-help-again-with-css-php/ Share on other sites More sharing options...
teamatomic Posted April 11, 2010 Share Posted April 11, 2010 When they click the button for color selection put the value into a session var then you can use it for every page call. HTH Teamatomic Quote Link to comment https://forums.phpfreaks.com/topic/198247-help-again-with-css-php/#findComment-1040164 Share on other sites More sharing options...
jcbones Posted April 11, 2010 Share Posted April 11, 2010 I would put the value into a COOKIE, instead of a SESSION. That way they will see the same color each time they visit your site. Quote Link to comment https://forums.phpfreaks.com/topic/198247-help-again-with-css-php/#findComment-1040171 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.