当前位置: 代码迷 >> PHP >> !从ASP转PHP 不会配置
  详细解决方案

!从ASP转PHP 不会配置

热度:281   发布时间:2013-07-09 09:50:48.0
求助!从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" style="height:18px; width:150px; border:solid 1px #000;" maxlength="16" check="isString('#',16)" required="true" showName="密码"></td>
  相关解决方案