I need to change the CSS on a webpage based on a query string in the URL… but I’m new to PHP and havn’t been able to find sufficient examples on how to do it.
Basically when a user clicks on a menu link, and is then sent to an “aboutUs.php” page, I need the CSS on the aboutUs.php page to change based on the string query.
If I understand what you want correctly:
Then something like this:
Of course you can echo stylesheet link instead of style tags, but the logic is the same.