PHP新手

WBOY
WBOYOriginal
2016-06-23 13:49:33900browse

各位大哥大姐,小弟初学PHP,写个POST页面,老是POST不过去,麻烦高手看看代码出了什么问题,拜谢!
post.html

<html><body><form><h1>留言板</h1><form action="postproc.php" method="post"><p>标题: </p><input type="text" name="title" /><p>内容:</p><textarea rows="10" cols="30" name="content"></textarea><input type="submit" /></form></body></html>


postproc.php

<?php echo "<pre class="brush:php;toolbar:false">";var_dump($_POST);echo "
";exit;?>


回复讨论(解决方案)




留言板



标题: 



内容:








是不是多写了一个 form?

卧槽,没看见,谢谢

去掉第 3 行的 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn