一页上有两个html表单;只能选择带制表符的第二个表单字段

时间:2012-01-18 17:01:39

标签: html forms

我有一个页面,上面有两个表格。我只能在一个表单的输入框内单击。对于另一种形式,我可以选择输入框,但仅限于我使用制表符。无论如何我可以解决这个问题吗?该网站是http://login.peakperformancecct.com/。仅供参考,这是我的代码:

<div class="login">
        <h1>Email Login</h1>
        <form name="emaillogin" id="loginform" action="http://www.nspirelab.com:2095/login" method="POST">
            <p>
                <label for="user">Email Address<br />
                <input class="input" id="user" name="user" type="text" value="" size="20" /></label>
            </p>
            <p>
                <label for="pass">Password<br />
                <input id="pass" name="pass" class="input" type="password" size="20" /></label>
            </p>
            <p class="submit">
                <input type="submit" class="button-primary" value="Log In" />
            </p>
        </form>
</div>
<div class="login">
    <h1>Site Login</h1>
    <form name="sitelogin" id="loginform" action="http://peakperformancecct.com/wp-login.php" method="post">                
        <p>
            <label for="user">Username<br />
            <input class="input" type="text" name="log" id="log" value="" size="20" /></label>
        </p>
        <p>
            <label for="pass">Password<br />
            <input class="input" type="password" name="pwd" id="pwd" size="20" /></label>
            </p>
        <p class="submit">  
            <input type="submit" name="submit" value="Log In" class="button-primary" />
        </p>
    </form> 
</div>

0 个答案:

没有答案