【发布时间】:2014-09-10 16:20:33
【问题描述】:
我有这个表格
<form method="post" action="file.php">
<input type="button" name="one" value="1">
</input>
<input type="button" name="two" value="2">
</input>
<input type="submit">
</input>
</form>
如何获取此 INPUT 的 VALUE 并在 php 页面中显示此值?我尝试过这种方式,但它不起作用。我该怎么做?
$_POST[nameOfInput]
【问题讨论】:
-
您的输入没有名称。你期待什么?
-
我忘了在这个问题中添加名称,但在我的网页中有;)