I am looking to allow the user to change the text size when a link is clicked. I am using sessions to track the current style sheet so the font change is displayed and can be changed globally.
As far as I can tell - this should work, but currently does not
<?
session_start();
$css_default = "test_style.css";
$css_one = "test_style1.css";
$css_two = "test_style2.css";
$thestyle = $css_default;
$_SESSION['sess_style'] = $thestyle;
if($changetext){
if($sess_style == $css_default){
$_SESSION['sess_style'] = $css_one;
$thestyle = $sess_style;
}
if($sess_style == $css_one){
$_SESSION['sess_style'] = $css_two;
$thestyle = $sess_style;
}
if($sess_style == $css_two){
$_SESSION['sess_style'] = $css_default;
$thestyle = $sess_style;
}
}
?>
$changetext is the var that gets passed when the user clicks the "change my font size" link.
Any help is appreciated.
Mark