发表个话题!
我现在做了一个登录验证页面!
想法:
如果身份验证正确的话,转向另外一个页面,否则将提示出错!
问题:验证正确后如何转向另一个页面?谢谢,请支招!
问题点数:20、回复次数:5Top
1 楼zhiin(┈ Jcan ┈)回复于 2005-08-04 20:37:05 得分 8
header("Location: index.php");
或者用:
<script> window.location='index.php';
或者用:
<meta http-equiv="refresh" content="0; index.php"> --->记不清楚了Top
2 楼hucool(鱼淼)回复于 2005-08-04 20:44:26 得分 0
为什么我用 header("Location: index.php"); 后有以下出错提示:
验证成功!
Warning: Cannot modify header information - headers already sent by (output started at D:\website\website\oa\index.php:21) in D:\website\website\oa\index.php on line 22Top
3 楼syre(神仙)回复于 2005-08-04 21:56:56 得分 7
前面的输出去掉
Top
4 楼mysqlaping(处女主任的兄弟)回复于 2005-08-05 02:05:12 得分 5
在php.ini中设置output_buffering = On
再header("location:index.php");Top
5 楼hucool(鱼淼)回复于 2005-08-05 08:18:45 得分 0
谢谢,结贴!Top




