Re: [PHP] why does this not work?

2005-09-27 Thread Jordan Miller
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

Re: [PHP] why does this not work?

2005-09-27 Thread Jasper Bryant-Greene
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

[PHP] why does this not work?

2005-09-27 Thread Ross
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

Re: [PHP] Why does this not work??

2002-04-22 Thread Richard Archer
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??

[PHP] Why does this not work??

2002-04-22 Thread Jeffrey Means
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