why does this not work?
| From: | Ross | Date: | Tue, 27 Sep 2005 08:20:42 +0000 |
| Subject: | why does this not work? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-223252@lists.php.net to get a copy of this message | ||
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.