Greetings,

I am trying to determine the users screen resolution at my site. I currently have a redirection page, which passes the screen width variable onto my content page. I want this variable (the size of the screen width) to be available for all of my pages.

I only pass screen width on to content.php once. At this point, I would like to set it and then use it on all of my pages. How exactly do I do this? The variable for screen width, $screen_width, always gets reset on later pages. Thanks for your help.

Cheers!

    set a cookie? or session

    or even set a cookie in javascript and read with php(can u do that? yeah, right?)

    setcookie("siteres",$screen_width,timelimit,"/",".site.com");
    
    //chk on every page
    $screen_width=(isset($_COOKIE['siteres'])?$_COOKIE['siteres']:"default");
    
      Write a Reply...