在线等....帮帮忙呀??高手们,谢谢在最下面的else语句中,怎么总是进入不了head.php呢? 是不是 最下面的else内有错误呢??请高手指点指点,在线等!!!:-) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 window.parent.location(head.php)towindow.parent.location("head.php") 你试试这样行不行,同时你要检查你有没有语法之类的错误:<form method="POST" action="checklog.php" name="formlogin" ><table > <tr> <td >登陆名:</td> <td><input type=text name=logname size =18></td> </tr> <tr> <td >密 码:</td> <td><input type=password name=logpwd size =19></td> </tr> <tr> <td colspan =2 align =center ><input type =submit name=b1 value =登陆 ><input type=button name=b2 value =关闭 onclick ="VBScript:window.close()"></td> </tr></table>这个页面的名字叫 checklpg.php<?php$dbh=mysql_connect(*******','******','*****');if(!$dbh){ echo "没连接到数据库".strval($dbh); exit;}else{ echo "连接成功";}$name=$_POST["logname"];$pwd=$_POST["logpwd"];$query="select u_id,u_pwd from users where u_id='$name' and u_pwd='$pwd'";$rsh=mysql_db_query('paper',$query,$dbh);$row=mysql_fetch_array($rsh);echo $name.$pwd;if($row==false){ echo "没有该用户"; mysql_free_result($rsh); mysql_close($dbh); exit;}else if($row["u_pwd"]!=$pwd){ echo "密码不正确"; mysql_free_result($rsh); mysql_close($dbh); exit;}else{ echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=head.php">';}?> 寒你的checklpg.php不用写的这么累八 求php中的include()与自定义函数的优先级 请教一下提交按钮的问题 求高手一个url过滤算法 求类似于焦点的树形论坛+blog (php+mysql) 我放弃Smarty的一次经验,和兄弟们分享一下,请兄弟们PP^^ window2000下什么配制PHP4和oracle8.1.7 我只有10分帮帮我! 如何从右边取一段字符串? 新手问题! CI框架 树形 怎么点击一个链接文字(add)后.链接文字变为(ok).然后(OK是普通文本.不是链接文本) phplib安装出错,提示 Cannot redeclare Session::gc() 错误
to
window.parent.location("head.php")
<table >
<tr>
<td >登陆名:</td>
<td><input type=text name=logname size =18></td>
</tr>
<tr>
<td >密 码:</td>
<td><input type=password name=logpwd size =19></td>
</tr>
<tr>
<td colspan =2 align =center ><input type =submit name=b1 value =登陆 ><input type=button name=b2 value =关闭 onclick ="VBScript:window.close()"></td> </tr>
</table>这个页面的名字叫 checklpg.php
<?php
$dbh=mysql_connect(*******','******','*****');
if(!$dbh)
{
echo "没连接到数据库".strval($dbh);
exit;
}
else
{
echo "连接成功";
}
$name=$_POST["logname"];
$pwd=$_POST["logpwd"];
$query="select u_id,u_pwd from users where u_id='$name' and u_pwd='$pwd'";$rsh=mysql_db_query('paper',$query,$dbh);
$row=mysql_fetch_array($rsh);
echo $name.$pwd;
if($row==false)
{
echo "没有该用户";
mysql_free_result($rsh);
mysql_close($dbh);
exit;
}
else if($row["u_pwd"]!=$pwd)
{
echo "密码不正确";
mysql_free_result($rsh);
mysql_close($dbh);
exit;
}
else
{
echo '<meta HTTP-EQUIV="Refresh" Content="0;URL=head.php">';
}?>
你的checklpg.php不用写的这么累八