急~~~~~~~~~~~~~~

急~~~~~~~~~~~~~~

<form method="post" action="">
输入你的注册信息:<input type="text" name="del_name">
<br />
<br />
确认要删除吗?<input type="submit" value="yes" ><a href="ha.php"><input type="button" value="no" ></a>
</form>
   
<?php

    $mysql_connect=mysql_connect("localhost","root","");
    mysql_select_db("del",$mysql_connect);
   
    $del_name=$_POST['del_name'];
   
    $query="delete from ceshi where `username`='$del_name'";
   
    $result        =    mysql_query("$query");

header("location:ha.php");

?>



Warning: Cannot modify header information - headers already sentby (output started at C:\Program Files\ApacheGroup\Apache2\htdocs\haha1.php:8)

这个是什么错误,而且我的转向没有作用

header("location:ha.php");

一般不用这个转向,因为要求比较高

header 之前是不能有任何输出的
你上边输出了很多html代码

或者你应该把那段php代码放到最顶上
毕业了。。。