3 回答

TA貢獻(xiàn)1825條經(jīng)驗(yàn) 獲得超4個(gè)贊
<input type="button" />
<input type="submit">

TA貢獻(xiàn)1865條經(jīng)驗(yàn) 獲得超7個(gè)贊

TA貢獻(xiàn)1780條經(jīng)驗(yàn) 獲得超5個(gè)贊
name=button1
不會(huì)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
添加回答
舉報(bào)