开发者

HTML Form in ie giving me the problem

开发者 https://www.devze.com 2023-02-14 15:59 出处:网络
<form method=\'POST\' action=\"some action\"> <span> &l开发者_如何学Got;input id=\"foo\" type=\"password\" value=\"Enter Password\"/>
<form method='POST' action="some action">
        <span>
            &l开发者_如何学Got;input id="foo" type="password" value="Enter Password"/>
                <input type="submit" class="go-btn" id="go-button" value="" />
        </span>
</form>

This is the HTML form I am using. In IE when I hit the enter key It will open a small window to which says to download something. But When I click the submit button It works fine.

BTW every thing is working fine with Mozilla and Chrome.


Try giving a name to your password input:

<input id="foo" type="password" name="password" value="Enter Password" />


 action="some action"

Is most likely your problem. Change this to the page that you want it to go to. (It's trying to send the data to the page "some action" which is causing it to break)

0

精彩评论

暂无评论...
验证码 换一张
取 消