我有一个非常简单的“输入订单”页面,根据年龄和“立即付款”按钮可以选择下拉菜单。
我不想在PayPal页面上更改数量,而是要在DropDown下方显示一个“数量”文本框(默认值为1),然后将值传递给PayPal页面。

这是我的html:

<body style="border-style:double; text-align:center;">
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" runat="server">
    <div><br />
    <input type="hidden" name="cmd" value="_s-xclick"/>
<input type="hidden" name="hosted_button_id" value="WTFZKTFE95PDG"/>
<table align="center">
<tr><td><input type="hidden" name="on0" value="Registration Fees"/><b>Registration Fees</b></td></tr><tr><td><select name="os0">
    <option value="14 Years and over">14 Years and over £20.00 GBP</option>
    <option value="under 14 Years">under 14 Years £15.00 GBP</option>
</select> </td></tr>
</table><br /><br />
<input type="hidden" name="currency_code" value="GBP"/>
<input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" name="submit" alt="PayPal — The safer, easier way to pay online."/>
<img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"/>
    </div>
    </form>
</body>

最佳答案

您想要用于传递数量的变量将是“数量”。因此,您只需要添加类似于下面的代码即可。

Quantity: <input type="text" name="quantity" maxlength="5" value="1">

关于html - 具有Web标准的初始页上的数量值,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/15569873/

10-12 00:39
查看更多