why does this not work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This returns the correct value for $width but falls down on the boolean. I 
have tried intval/srtval but nothing seems to work.

Maybe it is too early!

$width = " <script> document.write(screen.width); </script>";
//$ross= intval($width);

echo $width;
if ($width < 1064) {
echo "lower";
$style= "style1.css";

}
else {
$style= "style2.css";

}


R. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux