hello
i'm trying to create a session variasble that will change the CSS file from style.css to larger.css but it doesn't seem to change... always stays at style.css and i was wondering if anyone could help me.
<?php
session_start();
if(isset($_SESSION['style']))
$_SESSION['style'] = $_SESSION['style'];
else
$_SESSION['style'] = "style.css";
?>
This is the code that starts the session then determines if the variable is empty if not it will stay the same otherwise it will make it style.css
then when you click a link that says click here to get bigger it will pass larger.css into the style sesion variable and go back to the main site. here's teh code for the link.
<a href="http://www.revmortpanj.com/rmpj/site.php?style='larger.css'">Click here for bigger text</a>
does anybody have any ideas? I found this ide aon the forum and tried it and have been looking on how to change session variables but haven't found anything useful ... idk why i'm going to keep looking but though i'd post this, up here. Any help would be great
i'm trying to create a session variasble that will change the CSS file from style.css to larger.css but it doesn't seem to change... always stays at style.css and i was wondering if anyone could help me.
<?php
session_start();
if(isset($_SESSION['style']))
$_SESSION['style'] = $_SESSION['style'];
else
$_SESSION['style'] = "style.css";
?>
This is the code that starts the session then determines if the variable is empty if not it will stay the same otherwise it will make it style.css
then when you click a link that says click here to get bigger it will pass larger.css into the style sesion variable and go back to the main site. here's teh code for the link.
<a href="http://www.revmortpanj.com/rmpj/site.php?style='larger.css'">Click here for bigger text</a>
does anybody have any ideas? I found this ide aon the forum and tried it and have been looking on how to change session variables but haven't found anything useful ... idk why i'm going to keep looking but though i'd post this, up here. Any help would be great