<?php
$name=$_POST['user_name'];
$content=$_POST['post_contents'];
$conn=mysql_connect("localhost","root","amwsoso");
mysql_select_db("test",$conn);
$sql="insert into contents (name,content) values ('$name','$content')";
$result=mysql_query($sql);
mysql_close($conn);
header("location:index.php"); //请问,这里为什么会错误?
?>