Hi!
I am using a little javascript, to through a query string, defines how wide my main website table should be, depending on the users resolution.
<!--
if (screen.width <= 800) {
document.location = "index2.php?table=95";
}
if (screen.width > 800) {
document.location = "index2.php?table=75";
}
//-->
and when the tables comes, i do width="<? echo $table; ?>".
this works just fine, and it reacts as it should. but then to keep the $table through the pages, i defines it as a session in the beginning of the page
session_start();
session_register("table");
but now suddenly, its not working. when the session is there, it just wont work, the table wont react on the correct way. Its just like the var $table is dropped when the session comes in.
help. 😕