Du solltest colorset in der main.php setzen. Und zwar so:
if (isset($colorset)) $_SESSION[colorset] = $_POST[$colorset];
Habe ich probiert.
Habe jetzt die main.php umgesetzt.
---
<?php
session_start();
if (isset($colorset)) $_SESSION[colorset] = $_POST[$colorset];
if (!isset ($_SESSION['colorset']))
{
$bg = "red";
$text = "white";
$link = "#C0C0C0";
$vlink = "#808080";
$alink = "#FFFFFF";
}
else if (isset ($_SESSION['colorset']) && $colorset=="bw")
{
$bg = "black";
$text = "white";
$link = "#C0C0C0";
$vlink = "#808080";
$alink = "#FFFFFF";
}
else if (isset ($_SESSION['colorset']) && $colorset=="wb")
{
$bg = "white";
$text = "black";
$link="#3333FF" ;
$vlink="#99CCFF";
$alink="#c0c0c0";
}
?>
<html>
<head>
</head>
<body bgcolor="<?= $bg ?>" text="<?= $text ?>" link="<?= $link ?>" vlink="<?= $vlink ?>" alink="<?= $alink ?>">
Herzlich willkommen...
<br><br>
<a href="setcolor.php">Zur Farbauswahl</a>
<?= $colorset ?>
<?= $bg ?>
--
aber funktionieren tut es immer noch nicht :(
Gruß
Sven