错误提示里不是写着吗
register.php第50行
header("Location: login_ok.php?id=$id\n");header信息必须在还没有信息传到客户端浏览器之前传递,你前边已经
有好多东西了......建议那里连接到一个新php页面,新页面里再header
register.php第50行
header("Location: login_ok.php?id=$id\n");header信息必须在还没有信息传到客户端浏览器之前传递,你前边已经
有好多东西了......建议那里连接到一个新php页面,新页面里再header
echo "<meta http-equiv=refresh content='0;url=filename.php'>";
或
<script>location="xx.php"</script>echo "<meta http-equiv=refresh content='0;url=filename.php'>";
最好改成content='1;url=filename.php'
就不会调用本地的缓存
echo "<script language='javascript'>window.navigate('xx.php?id=$id'); </script>";
<?php
require("include.php");
require("conn.php");
$link=connection();
$strsql="insert into ".info_table." values('$uid','$name')";
$result=mysql_query($strsql,$link);
mysql_close($link);
echo "<meta http_equiv=refresh ontent='1;url=PersonnelInfo.php'>";
?>
PersonnelInfo.php顯示用戶信息。這樣的說﹐這個程式就不能顯示用戶信息﹐不會定位到PersonnelInfo.php這個文件去。
对了问一下meta标签可以写在<head></head>之外吗??
echo "<meta http-equiv=refresh content='0;url=filename.php'>";
的作用好像只是成功后联到那个页面而已。
rei()能具体讲讲怎样实现“建议那里连接到一个新php页面,新页面里再header”么?谢了!!!!!!!!!!!!!!!!1
还有谁能提供一分好的关于注册,登陆的php源代码给me看么?是php+mysql的:)
echo "<meta http-equiv=refresh content='0;url=login_ok.php?id=".$id.">";
(这个meta标签可以在<head></head>以外用吗?)说起来在程序的50行(header("Location: login_ok.php?id=$id\n");)
我又看了一遍程序,不能header的原因是不是你的php代码在<head></head>
里??把他们写到<head></head>上面去看看我以前做过类似的登陆....很简陋,如果你要的话,你的信箱是???
麻烦给抄送一份:[email protected]多谢多谢~我也给分的啊~
分数也有啊
先谢谢了!
楼顶帖出来的帖子就很不错的,问题可能只是header写在<html>之内了楼顶测试了吗,怎么没来啊,你不会因为中国队输了吧.....呵呵
中国队实力就这样,没办法,再加上运气次点儿,哎~~~~枉费了我三节旷课的代价呀!!!!!!!!!!!