note 90322 deleted from control-structures.elseif by danbrown

From: Date: Thu, 16 Apr 2009 13:07:09 +0000
Subject: note 90322 deleted from control-structures.elseif by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153386@lists.php.net to get a copy of this message
Note Submitter: HAwk ---- 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!"; }

« previous php.notes (#153386) next »