Ok I am having a problem with this code I made, it seems that whenever I try to switch from the night template to the gloss, it requires 2 reloads for the change to take effect. The redirect function just simply redirects using php, I know there is no problem with it. Please help.
I am sorry about the messy code, I am a real beginner so please help.
Here is the code that appears right before the code of the night template:
[php]
------------------------------Here is where the night template code is
------------------------------Here is the drop down menu that switches the templates Choose a Design Night Design (Dark) Gloss Design (Bright) ------------------------------This is where the night template code ends and the gloss template starts <? } else if ($t == gloss || $_COOKIE["mscookietemplate"] == gloss) { if (!isset($t))redirect("http://www.mysite.com/index.php?t=gloss")?> ------------------------------Here is the drop down menu that switches the templates Choose a Design Night Design (Dark) Gloss Design (Bright) ------------------------------This is where the gloss template ends <? } ?> [/php]