日期:2014-05-17  浏览次数:20604 次

求助!从ASP转PHP 不会配置.
很奇怪,  不能登陆自动跳转:
 下面是登陆界面的代码

 <form action="action.php?action=login" method="post" name="login" onSubmit="return CheckForm(this)">
                <tr>
                  <td width="295"></td>
                  <td width="254"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td width="5%" height="25"></td>
                        <td width="25%">用户名:</td>
                        <td width="70%"><select name="staffid" style="width:151px;height:18px;display:none;" id="selectTest1">
                            <?php
$sql="SELECT staffid AS `用户ID`, staff AS `用户名` FROM staff WHERE (working = 0) ORDER BY staff";
$db=new cls_db();
$db->execute($sql);
while ($row=$db->fetch_array())
{
?>
                            <option value="<?php echo fun_htmlencode($row["用户ID"]) ?>"><?php echo fun_htmlencode($row["用户名"]) ?></option>
                            <?php
}
fun_select("selectTest1",$_COOKIE["user_id"]);
?>
                          </select>
                        <script>makeSelectBox("selectTest1");</script></td>
                      </tr>
                      <tr>
                        <td height="25"></td>
                        <td nowrap>密&nbsp; 码:</td>
                        <td><input name="pwd" type="password" sty