Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/90.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 贝宝表单创建_Html_Wordpress_Paypal - Fatal编程技术网

Html 贝宝表单创建

Html 贝宝表单创建,html,wordpress,paypal,Html,Wordpress,Paypal,我试图在PayPal中为WordPress网站创建一个表单,但遇到了一些问题。这是一种允许不同类型的注册和数量的表格——这两种工作都可以。最后,我的客户还想选择捐赠任何金额——这是行不通的 底部的代码只是将作为“备注”输入的金额添加到paypal中,而不是将实际货币价值添加到支付的金额中。我也试过“name=amount” <table> <form action="https://www.paypal.com/cgi-bin/webscr" method="post">

我试图在PayPal中为WordPress网站创建一个表单,但遇到了一些问题。这是一种允许不同类型的注册和数量的表格——这两种工作都可以。最后,我的客户还想选择捐赠任何金额——这是行不通的

底部的代码只是将作为“备注”输入的金额添加到paypal中,而不是将实际货币价值添加到支付的金额中。我也试过“name=amount”

<table>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input name="business" type="hidden" value="EMAIL" />
<input name="cmd" type="hidden" value="_xclick" />
<input name="item_name" type="hidden" value="Camper Registration" />
<input name="currency_code" type="hidden" value="USD" />
<!-- Provide a dropdown menu option field with quantity. -->

<tr>
<td><input type="hidden" value="Quantity" />How Many Campers?</td>

<td><select name="quantity">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select></td></tr>

<!-- Provide a dropdown menu option field with prices. -->
<tr>
<td><input name="on1" type="hidden" value="Payment Type" />Payment Amount</td>

<td><select name="os1">
<option value="deposit">Nonrefundable Deposit $100</option>
<option value="Before1/1">(Before 1/1/15) $210</option>
<option value="Before4/1">(Before 4/1/15) $225</option>
<option value="After4/1">(After 4/1/15) $250</option>
</select></td></tr>

<!-- Specify the price that PayPal uses for each option. -->
<input name="option_index" type="hidden" value="1" />
<input name="option_select0" type="hidden" value="deposit" />
<input name="option_amount0" type="hidden" value="100" />
<input name="option_select1" type="hidden" value="Before1/1" />
<input name="option_amount1" type="hidden" value="210" />
<input name="option_select2" type="hidden" value="Before4/1" />
<input name="option_amount2" type="hidden" value="225" />
<input name="option_select3" type="hidden" value="After4/1" />
<input name="option_amount3" type="hidden" value="250" />


<!-- Provide place for other donations. -->
<tr>
<td>Other Amount:</td>
<input type="hidden" name="on0" value="Other Amount">
<td><input name="os0" type="text" value="0"></td></tr>


<!-- Provide place for notes. -->
<tr>
<td>Child's Name(s) and Comments:</td>
<input type="hidden" name="on3" value="Notes">
<td><textarea name="os3" rows="4" cols="50" wrap></textarea></td></tr>


</table>

<!-- Display the payment button. -->
<input alt="PayPal - The safer, easier way to pay online" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_paynow_LG.gif" type="image" />
<img src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" alt="" width="1" height="1" border="0" />

</form>
以下是相关代码:

<tr>
<td>Other Amount:</td>
<input type="hidden" name="on0" value="Other Amount">
<td><input name="os0" type="text" value="0"></td></tr>

…最后,我的客户还想选择捐赠任何金额-这不起作用。。。我不知道如何去解决问题。我曾经尝试添加这个代码,把它填入空白捐赠区,把它作为一个便条添加到贝宝,而不是作为实际金额。不确定如何将其添加到总金额中。因此,这些代码可能应该包括在问题中。我编辑了问题以添加有问题的代码