3 回答
TA贡献1825条经验 获得超4个赞
<input type="button" />
<input type="submit">
TA贡献1865条经验 获得超7个赞
TA贡献1780条经验 获得超5个赞
name=button1
不会name=submit1
将要
<form action="checkout.php" method="POST"> <!-- this won't get submitted despite being named --> <input type="button" name="button1" value="a button"> <!-- this one does; so the input's TYPE is important! --> <input type="submit" name="submit1" value="a submit button"></form>
<?php var_dump($_POST); ?>
php -S localhost:3000 -t /tmp/test/
Place Order
- 3 回答
- 0 关注
- 340 浏览
相关问题推荐
添加回答
举报