Re: HTML::Form not submitting submit button name/value
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 10 Aug 2009, Gisle Aas wrote:
> Both current Safari and Firefox seem to send x=<x>&y=<y> when
> clicking on the image.
I see, I was using the test form
<form>
<input type=submit value="Upload it!" name=n>
<input type=image alt="Foo">
<input type=text name=t value="1">
</form>
from the t/html/form.t test suite. When clicking on the submit
button, no x or y parameters are set. If you add a src= attribute
to the img tag and a valid image path, and click on the image, the
browser will set x and y.
(On hitting Enter while editing the text field, I don't get any
x or y parameters with Firefox 3.)
-- Mike
Mike Schilli
[email protected]