Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:9599 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12950 invoked by uid 1010); 28 Apr 2004 12:40:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12775 invoked from network); 28 Apr 2004 12:40:45 -0000 Received: from unknown (HELO webserver.atomgate.com) (196.31.103.234) by pb1.pair.com with SMTP; 28 Apr 2004 12:40:45 -0000 Received: (qmail 17065 invoked by uid 89); 28 Apr 2004 12:39:47 -0000 Received: from unknown (HELO ?196.0.0.58?) (165.165.88.242) by 0 with SMTP; 28 Apr 2004 12:39:47 -0000 Reply-To: atlas@serv.co.za To: Php - support Content-Type: text/plain Organization: Atlas Pharmacy Message-ID: <1083155828.3179.71.camel@atlas-root.cc> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.2 (1.2.2-5) Date: 28 Apr 2004 14:37:08 +0200 Content-Transfer-Encoding: 7bit Subject: Javascript / Php From: atlas@serv.co.za (Kyle Vorster) document.write(screen.width);"; $width = ""; if (($height == "640") && ($width == "480")) { echo "height == 640 & width = 480"; } elseif (($height == "800") && ($width == "480")) { echo "2"; } elseif (($height == "800") && ($width == "600")) { echo "3"; } elseif (($height == "1024") && ($width == "576")) { echo "4"; } elseif (($height == "1024") && ($width == "768")) { echo "Height = 1024 & width = 768"; } echo "Height == $height & width == $width"; } ?> gives me this Height == 1024 & width == 768 but the html for that is Height == & width == and i wanne work with the 1024 in php and not with the html ,, what can i do to run the javascript at server side and not on the client side