我需要帮助,我想解决这个问题,但我不知道问题是什么。
基本上我有这个登录表单:
<form id="myform" action="login.php" method="post" class="loginform">
Email
<input type="email" name="email" maxlength="30" placeholder="john.smith@example.com" />
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="john.smith@example.com" />
Password:
<input type="password" id="password" name="password" placeholder="Password" />
<input type="submit" name="submit" value="Login >" />
</form>
答案 0 :(得分:0)
http://www.onenaught.com/posts/382/firefox-4-change-input-type-image-only-submits-x-and-y-not-name这或许可以解决您的问题吗?您是否在寻找提交名称以处理您的请求?