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

2005-09-28 Thread Lendy Chen
if (screen.width<1064) { document.write(""); } else { document.write(""); } or use cookie, js write screen.width to cookie,then php read screen.width from cookie. 20

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

2005-09-27 Thread Jochem Maas
bit off the point but... Oliver Grätz wrote: Ross schrieb: $width = " document.write(screen.width); "; //$ross= intval($width); Yes, this is and will always be zero, because you are evaluating a for his paricular $width string, yes. string to an integer value. $butThereIsAlwaysAtLea

[PHP] Re: why does this not work?

2005-09-27 Thread Oliver Grätz
Ross schrieb: > $width = " document.write(screen.width); "; > //$ross= intval($width); Yes, this is and will always be zero, because you are evaluating a string to an integer value. > echo $width; > if ($width < 1064) { > echo "lower"; > $style= "style1.css"; > > } > else { > $style= "style2.cs

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

2002-04-22 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (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