1 回答
TA贡献1829条经验 获得超9个赞
为什么有多种形式?只需将它们全部合并为一种形式,因为动作和方法对所有人都是相同的
<form id="allform" class = "NameInput" action="addToCartFood.php" method="POST">
Name: <input type="text" class = "inputName" name="Name" value=""><br>
Date:
<select name="Date" class = "Date">
<option value="26">26</option>
<option value="27">27</option>
<option value="28">28</option>
</select>
July 2020
Adult:
<select id = "selectboxAdult" name="Adult" class = "Adult" onchange = "calculateAll(<?php echo $_SESSION['price'];?>)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
<input type="submit" class = "submitbtn" form="allform" value="Add to Cart">
</form>
- 1 回答
- 0 关注
- 141 浏览
添加回答
举报