PHP Style Switcher

I designed a really cool (well, at least, I think it is) alternate style sheet for my website. Unfortunately, both of the PHP switcher codes I've tried can't load the default style, or my modified one.

The first I used was the About.com script.

My website is organized like this:

-splash page

--/home/

---default.htm

--/getinfo/

---default.htm

--/resources/

---styles.css *this is the default style sheet*

---stylesv.css *this is the "vintage" style sheet*

The bold text is the "resources" area, where the style sheets and images are located.

My code looked like this (in an abbreviated format here; the full code is too long and unnecessary):

<head>

<link rel="stylesheet" type="text/css" href="../../unavailable.html" />

</head>

The PHP looked like this:

<?php 

$Year =31536000 + time();

setcookie ('style', $choice, $year);

header("Location: $HTTP_REFERER");

?>

<a href="../../unavailable.html">Default Style</a> | <a href="../../unavailable.html">Vintage Style</a>

I tried both with "../resources/" and without that string in the code, and it made no difference.

Then I tried the A List Apart script, but with no luck on that either.

Currently, I am on my third method, but it isn't working either. I lost the link to it, however.

I think my code is formatted correctly, but I know it obviously isn't, because it isn't working. What am I doing wrong?

For reference:

My website (this one doesn't have the switching code) | My website with the testing switching code

#483141

EDIT: I figured it out. I tossed the old code and used a different method, which works nicely. You can see it at http://www.nheerdesign.co.nr/

#483643

man... :D i don't like About.com's script at all.. thats my view...

#493305