每当我尝试从我自己的PayPal表格中订购某些东西时,所有的值都必须高于0.我怎样才能使它只订购一个项目而另一个设置为零
错误消息:您输入的数量值无效。数量值必须是大于或等于1的整数。
示例代码:JSFiddle
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input name="cmd" type="hidden" value="_cart" />
<input type="hidden" name="upload" value="1" />
<input name="currency_code" type="hidden" value="USD" />
<input name="business" type="hidden" value="test@example.com" />
Italian on Wheat Bread
<input type="hidden" name="amount_1" value="6.00" />
<input type="hidden" name="item_name_1" value="Italian on Wheat Bread" />
<input type="number" name="quantity_1" value="0" />
<br />
Turkey on White Bread
<input type="hidden" name="amount_2" value="6.00" />
<input type="hidden" name="item_name_2" value="Turkey on White Bread" />
<input type="number" name="quantity_2" value="0" />
<br />
Vegetarian on Wheat Bread
<input type="hidden" name="amount_3" value="6.00" />
<input type="hidden" name="item_name_3" value="Vegetarian on Wheat Bread" />
<input type="number" name="quantity_3" value="1" />
<br />
<input type=submit />
</form>