note 90322 added to control-structures.elseif

From: Date: Thu, 16 Apr 2009 11:19:58 +0000
Subject: note 90322 added to control-structures.elseif
Groups: php.notes 
Request: Send a blank email to php-notes+get-153381@lists.php.net to get a copy of this message
I need some help, the problem is that i only see the include result from 1280x1024.htm also when i got my resolution on 1024x768 can someone solve this problem for mee, Thanks <?php $res = '<script>document.write(screen.width)</script>'; if('$res == 1280') { include ("1280x1024.html"); } elseif('$res == 1024') { include ("1024x768.html"); } else { Echo"Can't see the resolution!"; } ---- Server IP: 91.199.167.18 Probable Submitter: 213.93.53.149 ---- Manual Page -- http://www.php.net/manual/en/control-structures.elseif.php Edit -- https://master.php.net/note/edit/90322 Del: integrated -- https://master.php.net/note/delete/90322/integrated Del: useless -- https://master.php.net/note/delete/90322/useless Del: bad code -- https://master.php.net/note/delete/90322/bad+code Del: spam -- https://master.php.net/note/delete/90322/spam Del: non-english -- https://master.php.net/note/delete/90322/non-english Del: in docs -- https://master.php.net/note/delete/90322/in+docs Del: other reasons-- https://master.php.net/note/delete/90322 Reject -- https://master.php.net/note/reject/90322 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153381) next »