if($_SERVER['REQUEST_METHOD']=='GET'){
<form action="<?php echo $_SERVER['SCRIPT_NAME']?>" method="post">
这是表单内容<input name="title" type="text" /><input type="submit" value="提交" />
</form>
}else{
echo '标题是'.$_POST['title'];
}
if($_SERVER['REQUEST_METHOD']=='GET'){
<form action="<?php echo $_SERVER['SCRIPT_NAME']?>" method="post">
这是表单内容<input name="title" type="text" /><input type="submit" value="提交" />
</form>
}else{
echo '标题是'.$_POST['title'];
}