0
我需要帮助,我想弄清楚这一点,但我不知道问题是什么。Firefox的登录表单问题?
基本上我有这个登录表单:
<form id="myform" action="login.php" method="post" class="loginform">
Email
<input type="email" name="email" maxlength="30" placeholder="[email protected]" />
Password
<input type="password" name="password" maxlength="30" placeholder="*****" />
<input type="image" src="../PTB1/assets/img/icons/loginarrow1.png" name="submit" class="loginbutton"/>
</form>
而且它在所有浏览器但Firefox的作品。
由于某种原因,我把它缩小为用于提交按钮的图像,因为如果我使用下面的表单,那么Firefox会正常工作并登录,但它不会与上面的那个一起使用。任何想法什么是错的?谢谢。
<form action="login.php" method="post">
Email:
<input type="email" id="email" name="email" placeholder="[email protected]" />
Password:
<input type="password" id="password" name="password" placeholder="Password" />
<input type="submit" name="submit" value="Login >" />
</form>
错误?表单完全提交吗?它提交但没有通过?它什么都不做?它有什么作用吗? – Leeish
没有错误,它会去login.php,因为我被重定向到该页面,但它要求我仍然登录,所以没有运行登录脚本。 –
你用什么来使登录脚本启动?你能显示或回显所有传入的表单变量吗?我发布了一个链接,其中说明了图像提交,FF4只传递单击图像的X/Y位置,而不是名称本身。 – Leeish