Re: Submit button as image

From: Date: Wed, 12 May 2004 17:42:44 +0000
Subject: Re: Submit button as image
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-186023@lists.php.net to get a copy of this message
Sam wrote:
What do you do with this? Submit.x=22&Submit.y=13 if($_GET['Submit.x'] > 0) ??? Is there some smarter way of dealing with an image as a submit button? input name="Submit" type="image" value="doesNOTseemTOmatter" Thanks
Well, it comes through as an image map in most browsers. I've found that you can't rely on the value of a submit button anyway as it is usually possible to just hit enter in a form to submit it, which, in most browsers, doesn't send the submit button. Use a hidden or ohter field to check for submission. -- paperCrane <Justin Patrin>

« previous php.general (#186023) next »