note 15164 added to language.variables.external
| From: | DanRichter dot at dot programmer dot dot dot net at php2 dot chek dot com | Date: | Thu, 30 Aug 2001 09:25:41 +0000 |
| Subject: | note 15164 added to language.variables.external | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17375@lists.php.net to get a copy of this message | ||
Don't depend on image_x and image_y. If you do the following:
<input type="image" src="image.gif" name="submit">
do not use the following test:
if ( $submit_x ) ProcessForm(); // NOOOOOO!
This will not work because if the user TABs to the button and hits <space> (as you can do in
IE and must do in Lynx), $submit_x will be zero. Use the isset() function or, even better, include a
hidden flag variable.
http://www.php.net/manual/en/language.variables.external.php