I see what you mean about the parents method. And I think you're right about the event handlers being in javascript is cleaner. But about the name attribute issue, I don't know if there's any way around this. Through some googling I found this:
http://stackoverflow.com/questions/4458 ... ing-in-ie6.
stackoverflow.com user wrote:You probably have an <input name="submit" /> somewhere in your form, which overwrites the function "submit" of the form in IE
This is an issue with me because my site already used the name submit to check if the form has been submitted.
Code: Select all
<?php
if ($_POST['submit'])
{
...
if ($_POST['submit'] == "something")
{
...
?>
But I guess I could use another name, like
action, which is probably more semantic than submit in the first place. The two bummers aren't that bad, I can live with them.
Other than then the bummers, I'm having another issue with IE6/7. They are fine in IE6/7 until displayed after an input element. When they follow a text box or a textarea, the button is slightly subscript if you know what I mean; it's pushed slightly down as if it has a few pixels added to the top margin. It's strange, have a look
here. In other browser IE8, firefox and chrome, everything is displayed correctly, aligned. Any ideas why this might be happening?