CODE
<?php
session_start();
// Time to choose the layout! Since it is the same layout with different style sheets, just put the users choice into a session,
// then add a default incase the user hasn't chosen anything.
if (isset($_GET["css_form"])){
$HTTP_SESSION_VARS["css"] = $_GET["css_form"];
$css = $_GET["css_form"];
} else {
$css = "orange";
}
echo "<link rel='stylesheet' type='text/css' href='http://www.ephp.uni.cc/$css/style.css' title='Stylesheet'/>";
?>
session_start();
// Time to choose the layout! Since it is the same layout with different style sheets, just put the users choice into a session,
// then add a default incase the user hasn't chosen anything.
if (isset($_GET["css_form"])){
$HTTP_SESSION_VARS["css"] = $_GET["css_form"];
$css = $_GET["css_form"];
} else {
$css = "orange";
}
echo "<link rel='stylesheet' type='text/css' href='http://www.ephp.uni.cc/$css/style.css' title='Stylesheet'/>";
?>
And the form:
CODE
<form name="css_chooser" type="get">
<select name="css_form">
<option value="orange" selected> Orange
<option value="green"> Green
<option value="gray"> Gray
<option value="pink"> Pink
<option value="purple"> Purple
<option value="red"> Red
</select>
<input type="submit" value="Go!">
</form>
<select name="css_form">
<option value="orange" selected> Orange
<option value="green"> Green
<option value="gray"> Gray
<option value="pink"> Pink
<option value="purple"> Purple
<option value="red"> Red
</select>
<input type="submit" value="Go!">
</form>
What should I do, becuase it isn't working.
And btw, where did you CODE button go?
