我正在使用下面的贝宝表格。我进行了一些更改,以便可以获得一些自定义输入字段。我想要一个字段名称数量或数字,这将是一个下拉菜单。当用户从中选择一个选项并点击立即购买时,他/她将被重定向到贝宝页面,价格将显示为实际价格与数量的乘积。
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="dsfddgdr@gmail.com">
Ad Type:<input type="text" readonly="readonly" name="item_name" value="<?php echo $product; ?>"> <br/>
<!-- <input type="hidden" name="item_number" value="1"> -->
<!-- <input type="text" name="Ad_Type" value="1"> -->
Price:<input type="text" readonly="readonly" name="amount" value="$<?php echo $price; ?>">
<strong>Which tutorial are you donating for?</strong><br />
<select name="item_quantity">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
</select>
<input type="hidden" name="no_shipping" value="0">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="lc" value="AU">
<input type="hidden" name="bn" value="PP-BuyNowBF">
<input type="hidden" name="return" value="domain.com/success.php?ad_id=<?php echo $ad_id; ?>&user_id=<?php echo $user_id; ?>&ad_level=<?php echo $ad_level; ?>&ad_duration=<?php echo $ad_duration; ?>">
<input type="image" src="paypal_checkout_EN.png" border="0" name="submit" alt="PayPal - The safer, easier way to pay online.">
<img alt="" border="0" src="https://www.paypal.com/en_AU/i/scr/pixel.gif" width="1" height="1">
</form>
我被困住了。它向我显示了选择字段,但我如何使它在贝宝页面中工作?