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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to