Re: Submit Image Button
| From: | Thomas | Date: | Thu, 03 Apr 2003 15:43:11 +0000 |
| Subject: | Re: Submit Image Button | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-142159@lists.php.net to get a copy of this message | ||
It works either way apparently...plus, I need the $POST not $_GET. but it
works aswell.
"-{ Rene Brehmer }-" <metalbunny@metalbunny.net> wrote in message
news:34ho8vssndidev7er5a0oam789cbg77721@4ax.com...
> 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