Re: Submit Image Button

From: Date: Thu, 03 Apr 2003 14:27:56 +0000
Subject: Re: Submit Image Button
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-142141@lists.php.net to get a copy of this message
On Wed, 2 Apr 2003 21:41:02 -0500, John Coggeshall wrote about "RE: [PHP] Submit Image Button" what the universal translator turned into this: >Well you can ignore it if you don't need the X/Y cord... But you can use >it to make sure the button was clicked: > >If(!$_GET['sub_x'] || !_GET['sub_y']) { > // display form >} else { > // it was submitted If you can't click the button without getting both a X and Y coordinat, wouldn't it make more sense to use AND instead of OR in the above logex?? So it would be: If(!$_GET['sub_x'] && !$_GET['sub_y']) { // display form } else { // it was submitted Plus you're missing a $ in the second $_GET... Rene -- Rene Brehmer This message was written on 100% recycled spam. Come see! My brand new site is now online! http://www.metalbunny.net

« previous php.general (#142141) next »