header("Location: Start.html");
以前不能有仁何输出的你以经在前面有如下输出了,
<html>
<head>
</head>
<body>
可将原代码改为
<?php
 $Link=@mysql_pconnect(localhost,root,ytyes)
       or die("不能连接数据库服务器");
 mysql_select_db(lida,$Link);
 $strSQL="select UserID,Password 
       from Users
        where UserID='$UserID' and Password='$Password'";
 $result=@mysql_query("$strSQL",$Link)
        or die("查询不成功");
 if ($row=mysql_fetch_array($result))
 {   //在这里添加注册session的代码;
    header("Location: Start.html");
    exit;                         }  //重定向到分类及推荐页面;
 else {
         die("<hr>登录失败<a href=\"index.html\">返回</a>");
      }
 ?>

解决方案 »

  1.   

    或将header的重定向换成用javascript或html的重定向方法来实现
      

  2.   

    header("Location: Start.html");=>echo "<script>this.location='./Start.html';</script>";
      

  3.   

    把header("Location: Start.html");改成
    echo "<script>";
    echo "self.location.href='start.html';";
    echo "</script>";
      

  4.   

    header()
    要在任何http头标之前发送。
    而你现在则不是这样。
    把"<html>l.................这样的东西去掉就可以了。
    如果有输出这样的东西,可以写成echo "<html>......