Jump to content

Style Switcher?


phpwiz

Recommended Posts

yes... one way could be instead of connecting each page to a css sheet directly... include a page called "styles.php" or something... and in there you could have something like...

 

if ($_SESSION['style'] == 1)

  echo "<link rel=StyleSheet href='style1.css' type='text/css'>";

if ($_SESSION['style'] == 2)

  echo "<link rel=StyleSheet href='style2.css' type='text/css'>";

Link to comment
https://forums.phpfreaks.com/topic/168584-style-switcher/#findComment-889237
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.