Re: if(isset($submit))
| From: | Richard Baskett | Date: | Thu, 28 Feb 2002 05:28:23 +0000 |
| Subject: | Re: if(isset($submit)) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86525@lists.php.net to get a copy of this message | ||
It's because when you submit using an image they submit the exact x and y
coordinates that were clicked on. Hope it helps!
Rick
"We do not have to visit a mad house to find disordered minds; our planet is
the mental institution of the universe." - Unknown
> From: jtjohnston <taylorjo@collegesherbrooke.qc.ca>
> Organization: FLSH, Université de Sherbrooke
> Reply-To: jtjohnston@courrier.usherb.ca
> Date: Thu, 28 Feb 2002 00:28:09 -0500
> To: php-general@lists.php.net
> Subject: Re: [PHP] if(isset($submit))
>
> I s'pose, but where/why are you getting submit.x=118&submit.y=20
>
> Martin Towell wrote:
>
>> I used this code
>>
>> <form action="/inetpub/wwwroot/top.html" method="get">
>> <input type="image" src="none.gif" width="125"
>> height="25" name="submit"
>> value="submit">
>> </form>
>>
>> when I clicked on the image, I got this url
>>
>> file:///C:/inetpub/wwwroot/top.html?submit.x=118&submit.y=20
>>
>> so php would get this as $submit_x and $submit_y
>>
>> HTH
>> Martin
>>
>> -----Original Message-----
>> From: jtjohnston [mailto:taylorjo@collegesherbrooke.qc.ca]
>> Sent: Thursday, February 28, 2002 4:17 PM
>> To: php-general@lists.php.net
>> Subject: [PHP] if(isset($submit))
>>
>> Has anyone tried:
>>
>> <input type=\"image\" name=\"submit\" value=\"submit\"
>> src=\"next.gif\" border=\"0\" align=\"ABSCENTER\">
>>
>> instead of :
>>
>> <input type=\"submit\" name=\"submit\"
>> value=\">>\">
>>
>> I can't get this to work:
>> if(isset($submit))
>>
>> with:
>>
>> <input type=\"image\" name=\"submit\" value=\"submit\"
>> src=\"next.gif\" border=\"0\" align=\"ABSCENTER\">
>>
>> I'm not coding correctly?
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>
> --
> John Taylor-Johnston
> -----------------------------------------------------------------------------
>
> ' ' ' Collège de Sherbrooke:
> ô¿ô http://www.collegesherbrooke.qc.ca/languesmodernes/
> - Université de Sherbrooke:
> http://compcanlit.ca/
> 819-569-2064
>
>