Closed Bug 218612 Opened 22 years ago Closed 22 years ago

an image form submit button whose image is missing submits the form when click, but does NOT submit the name of the image element

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 122238

People

(Reporter: chriskl, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030728 Mozilla Firebird/0.6.1 Normally, clicking on an image submit button sends a name.x and name.y variable. When the image is not there, however, FireBird displays the ALT text for the image. However, when you click on that alt text, the form is submitted, but the name.x and name.y variable are not sent. This causes PHP code that does this to fail: if (isset($name_x)) ... (Those name.x variables appear as $name_x) in PHP. Reproducible: Always Steps to Reproduce: 1.Create an image submit button with an image src that doesn't exist. Also supply an ALT tag. 2.Try submitting the form and see that it does not send the submit form element name 3. Expected Results: It should have sent name.x=0 and name.y=0 or something. Sending name=something would be bad for compatibility.
Reporter, have you got a testcase/URL so that others can reproduce this problem? The summary says that the name is not submitted, but by the description I think you mean the co-ordinates. Suggest change summary to something like "send dummy/default values for x,y co-ordinates when alt text replaces image for form submit". I suspect this should be under Browser->Form Submission (unless the action of Firebird differs from Mozilla).
This is a duplicate. Please find the original (in the "Browser" product), and resolve this as duplicate of it.
Whiteboard: DUPEME
I can't find the dupe. Moving to Browser to see if someone there knows where it is.
Assignee: blake → form-submission
Component: General → Form Submission
Product: Firebird → Browser
QA Contact: asa → ashishbhatt
Version: unspecified → Trunk
The dup is bug 122238. Hope this gets fixed soon.
*** This bug has been marked as a duplicate of 122238 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Whiteboard: DUPEME
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.