I have been using PHP that someone from this list provided in order to provide a CSS switcher to my site (below).
I noticed today that it isn't working (it was working previously). As far as I can tell, the problem is that cookies are not being sent. I tested this by setting Opera to 'display received cookies' and nothing happens when I load the page or change the CSS. Here is the relevant (I think) PHP: ((from the file that starts the page)) session_start(); // new session? set default value if (!session_is_registered("CSS")) { session_register("CSS"); $CSS = "default"; } // setting changed by form? update session value if (isset($newCSS)) $CSS = $newCSS; ((And then in the file that creates the footer)) // BEGIN choose CSS section echo <<< EOD <div id="changecss" class="shownoprint" style="margin-left: auto; margin-right: auto; text-align:center;"> <form action="$PHP_SELF" method="post"> <p>Change CSS: <select name="newCSS"> <option value="default" selected="selected">Default</option> <option value="smaller">Smaller</option> <option value="larger">Larger</option> <option value="highcontrast">High Contrast</option> <option value="print">Print (under construction)</option> </select> <input alt="Set" type="submit" name="Set" value="Set" /> (Current: <strong>$CSS</strong>) </p> </form> </div> EOD; // END choose CSS section -- Site: www.tntluoma.com mailto:[EMAIL PROTECTED] Info: Apache/1.3.19 (Unix) with PHP/4.0.6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php