Is there a code which I can put in my php code which will allow me to change the stylesheet used based on what is in the url. So say I have two stylesheets, style1.css and style2.css Is there some php code which would allow me to load style1 by typing in: http://mywebsite.com/index.php?style=1 and then use style2.css by typing in: http://mywebsite.com/index.php?style=2
😕
<link type="text/css" rel="stylesheet" href="style<?php echo $_REQUEST['style']; ?>.css">
May prefer $GET to $REQUEST depending on your implementation.