|
Posted by Jukka K. Korpela on August 28, 2005, 9:35 am
Please log in for more thread options
joesplink wrote:
> I created a form using buttons, for example
>
> <BUTTON type="submit" name="PBUTTON" value="Sign In">Sign In</BUTTON>
Use <input type="submit" name="PBUTTON" value="Sign In"> instead.
> and this worked OK when I tested the site using the MOZILLA browser,
> but, when I use the AOL EXPLORER browser, when I get the value of the
> button, I don't get "Sign In" I get "submit".
>
> So,the button behaves differently depending on the browser?
Exactly. So use <input ...> instead.
It's not just AOL EXPLORER. It's also Internet Explorer that has a
completely broken implementation of <button>.
On the other hand, don't rely on getting the name=value pair even when
using <input ...>. You don't need it if you have just one submit button.
And if you have multiple submit buttons, things are rather unpredictable
when someone submits the form by pressing Enter in a text input field.
|