Php IE表单操作重定向错误
我有基本用户登录的html表单,可以在chrome、firefox甚至ie8上使用。 但在具有Compatipliy视图的IE7和IE8中,它被破坏了 这是代码Php IE表单操作重定向错误,php,internet-explorer-7,ie8-compatibility-mode,Php,Internet Explorer 7,Ie8 Compatibility Mode,我有基本用户登录的html表单,可以在chrome、firefox甚至ie8上使用。 但在具有Compatipliy视图的IE7和IE8中,它被破坏了 这是代码 <form action="<?php echo APPROOT."/" ?>core/signin.php" method="post"> <table> <tr> <td>Username
<form action="<?php echo APPROOT."/" ?>core/signin.php" method="post">
<table>
<tr>
<td>Username/Email</td>
<td>Password</td>
</tr>
<tr>
<td> <input type="text" class="loginInput" name="username" id="lgUsername"/> </td>
<td> <input type="password" class="loginInput" name="password" id="lgPassword" /> </td>
<td> <input type="submit" class="loginBt" name="login" value="Log In" id="loginButton" /> </td>
</tr>
<tr>
<td>Remember me <input type="checkbox" name="rememberMe" value="yes" /></td>
<td><a href="#">Forgot Password?</a></td>
</tr>
</table>
确切地说,什么是
APPROOT
,你可以发布浏览器看到的html吗?也许还可以清理你的html,使用w3c验证程序关闭你的html,这可能是个诀窍-而且你的表结构似乎不太正确。还有一些代码使ie不使用兼容模式,以及使用firefox的ie tab add-on查看ie7的行为。希望helpsRichard表单和表结构正确。我只是不想复制整个html代码,我认为它是不相关的,因为它重定向错误,应该是表单subimtIt出了问题很难想象这是个问题,但你永远不会知道IE;如果你在任何地方都使用绝对链接,我会去掉标题中的base
元素。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="/project/styles/style.css" />
<base href="/project" />
<script type="text/javascript" src="/project/scripts/jquery-1.6.1.min.js"></script>
<script type="text/javascript" src="/project/scripts/master.js"></script>
<script type="text/javascript" src="/project/scripts/login.js"></script>
<title>project</title>
</head>
<body>
<div id="wrapper">
<div id="header">
<div id="logoLogin">project</div>
<div id="loginPart">
<form action="/project/core/signin.php" method="post">