请问这个错误该怎么解决?谢谢,390分 代码帖出来。肯定用到了header函数或者setcookie等之类的用法。注意前面不能有输出,包括空格,空行。or:ob_start();//..............你的代码ob_end_flush(); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 好的//index.php<html><head><title></title></head><body ><center><table width="778" border="0" cellspacing="0" cellpadding="0"> <tr> <table width="92%" border="0" cellspacing="0" cellpadding="0" align="center" background="images/point_heng.gif" height="24"> <tr> <td valign="middle"> <div align="center"><img src="images/title_login.gif" width="70" height="22" alt="登录"></div> </td> </tr> </table> <table width="92%" border="0" cellspacing="0" cellpadding="0" align="center"> <tr> <td background="images/point_shu.gif"><img src="images/point.gif" width="1" height="1"></td> <td width="100%"> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="aa"> <tr> <td> </td> </tr> </table> <?include("login.php"); ?>.....//login.php<?require "config.php";function login($username,$passwd){if($username){$ip=$REMOTE_ADDR;setcookie ("cookien",$username,time()*3600*24*365,"/");setcookie ("cookiep",$passwd,time()*3600*24*365,"/");echo"<table width='100%' border='0' cellspacing='0' cellpadding='0' class='aa'> <tr><td align='center'>登陆成功!</td></tr> <tr> <td align='center'>欢迎您:$username</td> </tr> <tr> <td align='center'>这是您第次访问我们网站</td> </tr> <tr> <td align='center'>您上一次登陆时间为:</td> </tr><tr><td> </td></tr> <tr> <td align='center'><a href=>注销我的登陆<a></td> </tr> </table>"; exit; }}login($username,$passwd);?> //login.php<?ob_start();require "config.php";function login($username,$passwd){if($username){$ip=$REMOTE_ADDR;setcookie ("cookien",$username,time()*3600*24*365,"/");setcookie ("cookiep",$passwd,time()*3600*24*365,"/");echo"<table width='100%' border='0' cellspacing='0' cellpadding='0' class='aa'> <tr><td align='center'>登陆成功!</td></tr> <tr> <td align='center'>欢迎您:$username</td> </tr> <tr> <td align='center'>这是您第次访问我们网站</td> </tr> <tr> <td align='center'>您上一次登陆时间为:</td> </tr><tr><td> </td></tr> <tr> <td align='center'><a href=>注销我的登陆<a></td> </tr> </table>"; exit; }}login($username,$passwd);ob_end_flush();?> ob_start();搁到index.php头一行 php+mysql实现图片存储 大家认为哪个cms开源建站程序最好? PHP正则的问题 关于PHP在接收网页传过来的变量时的问题,方法很拐啊,高手帮忙啊 怎么过滤包含unicode 的html代码 mktime()为什么不能超过2100年? 关于ipb的问题? 跪求:如何利用PHP进行日期比较?? 请问大家用什么开发环境? chm WebCMS网站内容管理平台软件,php开发。http://wb.josetech.com 欢迎试用!!! 各位一個關于mail function的問題.在線等候謝謝!
//index.php
<html>
<head>
<title></title>
</head><body >
<center>
<table width="778" border="0" cellspacing="0" cellpadding="0">
<tr>
<table width="92%" border="0" cellspacing="0" cellpadding="0" align="center" background="images/point_heng.gif" height="24">
<tr>
<td valign="middle">
<div align="center"><img src="images/title_login.gif" width="70" height="22" alt="登录"></div>
</td>
</tr>
</table>
<table width="92%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td background="images/point_shu.gif"><img src="images/point.gif" width="1" height="1"></td>
<td width="100%">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="aa">
<tr>
<td> </td>
</tr>
</table>
<?include("login.php"); ?>
.....
//login.php
<?
require "config.php";
function login($username,$passwd){
if($username){
$ip=$REMOTE_ADDR;
setcookie ("cookien",$username,time()*3600*24*365,"/");
setcookie ("cookiep",$passwd,time()*3600*24*365,"/");
echo"<table width='100%' border='0' cellspacing='0' cellpadding='0' class='aa'>
<tr><td align='center'>登陆成功!</td></tr>
<tr>
<td align='center'>欢迎您:$username</td>
</tr>
<tr>
<td align='center'>这是您第次访问我们网站</td>
</tr>
<tr>
<td align='center'>您上一次登陆时间为:</td>
</tr><tr><td> </td></tr>
<tr>
<td align='center'><a href=>注销我的登陆<a></td>
</tr>
</table>";
exit;
}
}
login($username,$passwd);
?>
<?
ob_start();
require "config.php";
function login($username,$passwd){
if($username){
$ip=$REMOTE_ADDR;
setcookie ("cookien",$username,time()*3600*24*365,"/");
setcookie ("cookiep",$passwd,time()*3600*24*365,"/");
echo"<table width='100%' border='0' cellspacing='0' cellpadding='0' class='aa'>
<tr><td align='center'>登陆成功!</td></tr>
<tr>
<td align='center'>欢迎您:$username</td>
</tr>
<tr>
<td align='center'>这是您第次访问我们网站</td>
</tr>
<tr>
<td align='center'>您上一次登陆时间为:</td>
</tr><tr><td> </td></tr>
<tr>
<td align='center'><a href=>注销我的登陆<a></td>
</tr>
</table>";
exit;
}
}
login($username,$passwd);
ob_end_flush();
?>
搁到index.php头一行