Forum Moderators: coopster
I am linking like so:
index.php?stylesheet=big
Here is my current code:
[PHP]<?php
session_start();
$stylesheet = $_GET['stylesheet'];
session_register("stylesheet");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<?php
if (!isset($_SESSION['stylesheet'])) {
echo "<link href='$_SESSION[stylesheet]'.css' rel='stylesheet' type='text/css'>";
} else{
echo "<link href='stylesheet.css' rel='stylesheet' type='text/css'>";
}
?>[/PHP]
I have echoed the session stylesheet variable and its being set, however it is not changing the stylesheet?
Any ideas?