下面是我编写的一个运用SESSION传值的代码
<html><body>
<form action="1.php" method="post">
<table width="300" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td colspan="2">
      <div align="center">用户登录</div>
    </td>
    </tr>
  <tr>
    <td>用户名:</td>
    <td><input type="text" name="username"></td>
  </tr>
  <tr>
    <td>密 码:</td>
    <td><input type="password" name="password"></td>
  </tr>
  <tr>
    <td><input type="submit" name="bt1" value="登录"></td>
    <td><input type="reset" name="bt2" value="重置"></td>
  </tr>
</table></form>
</body>
</html>
<?php
session_start();
if(isset($_POST['bt1']))
{
 $username=$_POST['username'];
 $password=$_POST['password'];
 if($username=="123"&&password=="123")
 {
   $_SESSION['username']=$username;
   $_SESSION['password']=$password;
   head("location:2.php");
 }
else
  {
    echo"<script>alert('登录失败');location.href='1.php';</script>";
  }
}
?>
可以运行结果老是出现这样
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at C:\wamp\www\1.php:11) in C:\wamp\www\1.php on line 34Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\wamp\www\1.php:11) in C:\wamp\www\1.php on line 34
请问哪位高手可以帮我看下出现什么问题?谢谢了