# CSS Stylesheet Switcher

**URL:** <https://forum.kirupa.com/t/css-stylesheet-switcher/143564>\
**Category:** Uncategorized\
**Created:** [April 6, 2005, 11:57pm UTC](https://forum.kirupa.com/t/css-stylesheet-switcher/143564 "2005-04-06T23:57:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw06](https://avatars.discourse-cdn.com/v4/letter/j/838e76/32.png) [@jw06](https://forum.kirupa.com/u/jw06)\
**Post date:** [April 6, 2005, 11:57pm UTC](https://forum.kirupa.com/t/css-stylesheet-switcher/143564/1 "2005-04-06T23:57:17Z")

</div>

I’m trying to create a style selector.

I have the following code to check if $style is set in the url:

```php

<?php
if (isset($_GET['style'])){
	$style = $_GET['style'];
} else {
	$style = style;
}
?>

```

I then have this as my link tag:  
\<link href=“style/\<?php $style; ?\>.css” rel=“stylesheet” type=“text/css”\>

The link is being changed and $style is being set in the URL but its not changing the style…

[http://www.arctichosts.com/index.php](http://www.arctichosts.com/index.php)
