Quote:
Originally Posted by tangoforce
An image in place of a submit button has no value. The very code you show has no value to it and no it won't be sent.
|
When a form is submitted by clicking on an image defined like that the
x and
y co ordinates within the image where the mouse cursor was when the button was clicked are sent. I have not come across any form where the spot on the image you click would make any difference but presumably whoever wrote that part of the specification could see such a need.
Thre is a second issue regarding using name="submit" in submit buttons that your above explanation doesn't mention. In some versions of Internet Explorer the names are mapped directly to JavaScript variables. Specifying a submit button with that name will therefore map form.submit to the submit button. This then makes it impossible to actually submit the form from JavaScript.
The safest thing to do if you only have the one submit button in your form is to not give it a name at all.