📜  如何将帖子添加到 php 代码示例

📅  最后修改于: 2022-03-11 14:54:00.395000             🧑  作者: Mango

代码示例3
I know it's a pretty basic thing but I had issues trying to access the $_POST variable on a form submission from my HTML page. It took me ages to work out and I couldn't find the help I needed in google. Hence this post.

Make sure your input items have the NAME attribute. The id attribute is not enough! The name attribute on your input controls is what $_POST uses to index the data and therefore show the results.