Hello
I'm trying to define the header of my page according to the screen res. of the user. I use a javascript to catch there screen res. and pass it to php but the variable header is only defined on the first page. this is the code:
$scr_x = $HTTP_GET_VARS["w"];
$scr_y = $HTTP_GET_VARS["h"];
if ($scr_x > 1000){
$header = "header1024.inc";}
else {
$header = "header800.inc";}
}
How could I make the var $header global so that once he is defined on the first page the value of header isn't redefined?