javascript is a client-side language, while php is a server-side
language... the value you are passing to $width only exists on the
client side, therefore the php server-side boolean fails.
i think you will have to pass the client-side calculated variable of
screen.width to the php server b
Ross wrote:
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 = " document.write(screen.width); ";
You know that PHP runs on the server, right? So how exactly is it
supposed to find o
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 = " document.write(screen.width); ";
//$ross= intval($width);
echo $width;
if ($width < 1064) {
echo "lower";
$style= "style1.css";
}
el
At 10:28 PM + 22/4/02, Jeffrey Means wrote:
>In using the setcookie function I can not set a cookie if I specify a time
>period. ie. setcookie("Cookie_Name", "Cookie_Value", time()+30); will not
>set a cookie, but setcookie("Cookie_Name", "Cookie_Value"); does work. What
>am I dooing wrong??
In using the setcookie function I can not set a cookie if I specify a time
period. ie. setcookie("Cookie_Name", "Cookie_Value", time()+30); will not
set a cookie, but setcookie("Cookie_Name", "Cookie_Value"); does work. What
am I dooing wrong??
Jeffrey D. Means
CIO for PicoTech
Fort Collin
5 matches
Mail list logo