1

我的表格有一个奇怪的问题。我有一个使用荷兰语的 register.php 页面(称为 aanmelden.html),但是当您单击英文按钮时不再起作用(称为 register.html),当我比较它们时,我看不到任何大的差异。

同样在同一页面上登录也是同样的问题。谁能给我一个提示在哪里看。

<form class="inline" id="loginform" name="loginform" action="=REGISTERPAGE.html" method="post">
    <p><label for="loginusername">username</label>
    <input id="loginusername" name="loginusername" class="required" /></p>
                                    <p>
    <label for="loginpassword">password</label>
    <input id="loginpassword" name="loginpassword"  class="required" type="password" />
                        </p>
                    <p>
    <label for="keeploggedin">keeploggedin</label>
    <input id="keeploggedin" name="keeploggedin" type="checkbox" />     </p>
                                    <p>
    <span class="sprite button submit" id="login_submit_button">login</span>
                            </p>                        </fieldset>
                </form>

提交表单的脚本如下:

<script type="text/javascript">

$("#login_submit_button").click(function()
{
    if($("#loginform").valid())
    {
        $("#loginform").submit();
    }
});
4

2 回答 2

0

action="=REGISTERPAGE.html"应该(可能)是action="REGISTERPAGE.html"

于 2012-11-09T20:22:04.113 回答
0

错别字...

action="=REGISTERPAGE.html"

应该读...

action="REGISTERPAGE.html"

(我预计)

于 2012-11-09T20:22:11.557 回答