<?
include "db_connect.php";
$str1="INSERT INTO wp_user (department,username) VALUES ('$department','$username');";
mysql_query($str1);
header("location:query.php");
?>
<html>
<BODY BGCOLOR="#FFFFFF"></body>
</html>
include "db_connect.php";
$str1="INSERT INTO wp_user (department,username) VALUES ('$department','$username');";
mysql_query($str1);
header("location:query.php");
?>
<html>
<BODY BGCOLOR="#FFFFFF"></body>
</html>
wsj(骆驼)的改法是正确的 good luck
<html>
<BODY BGCOLOR="#FFFFFF">
</body>
</html>
echo "<script language=javascript>window.location='query.php';</script>";