我有一个问题要求与GET/POST相关。通过GET获取参数并通过POST提交(PHP)
我想做一个简单的博客文章和他们的意见。
从每个职位我都主页上的话,我想在一个新的页面,使保存post's指数有评论的控制添加注释的形式。
我通过GET在新页面中获取此索引值,但是当我通过POST提交表单时,我失去了索引的引用。
我读这是不可能同时使用这两种方法,我想知道我可以保持一个参数从主网页,并将其与价值的新形式,其余存储。
非常感谢,
BR
http://localhost/simple_blog_new_comment.php?postIndex=xx
<form action='simple_blog_new_comment.php' method='POST'>
\t \t Commentary:<br>
\t \t <textarea onfocus='clearContent(this)' cols='30' rows='5' name="txt_comment">Enter the text here...</textarea><br>
\t \t Author: <input type='text' name='txt_comment_author'><br>
\t \t <input type='submit' name='btn_comment_submit'><br><br>
\t </form>
这里索引引用究竟是什么? –
你想添加一个隐藏的输入字段到评论表单,其中包含帖子ID('”>' )。 – arkascha