Thanks for your reply. Both of them work. The only problem is that IE now doesn't execute correctly when I use it. The hidden button is to give the user the possiblilty to login without pressing login button but by using enter key. Now that is not properly recognized in IE. but thanks for helping me really hide the submit.
Since you cannot use javascript, try replacing your input button by an input of type image. Depending on the visual aspect, the image could be a plain 1px by 1px image matching the background color. I'm pretty shure that if you display:none an submit button, IE won't submit when the enter key is pressed.
I've tested with a simple form, and if you put an input type image instead of a classic submit button, then add the style="cursor: default;".
perhaps there's a way around what you are trying to achieve without a hidden button? we may be able to give some alternatives if we know what you're trying to do.
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
The idea is to give the user 2 options to login to the site. 1- by pressing the login button 2- by pressing enter key within password/username field Both are implemented as a "submit"
instead of hidden button, using javascript, you can detect event = '13' for the 'onkeydown' attribute of the password field (user has pressed 'enter') and do form.submit() when that occurs. if you're concerned about JS compatibility issues, i think you'll have that with about 1-5% of the users (unless everyone is using netscape on mac). in those cases, a the 'click on button' option is still available.
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>
Don't get me started about those stupid light bulbs.