【问题标题】:Sending form data to PayPal checkout将表单数据发送到 PayPal 结帐
【发布时间】:2013-02-25 21:25:19
【问题描述】:

好的,这里有问题,我通过单选按钮将表单数据发送到 PayPal 结帐,但是当您第一次上传 php 文件并采用正确的值时它可以工作,但是如果您返回并选择说下一个单选按钮并提交它然后将提交信息更改为您在几乎覆盖之前发送的值?

<table class="procut_item" border="0" cellpadding="4">
<tr>
<td width="auto"><h4>Product test</h4></td>
<td width="auto"><form method="post" action="process.php">
<input type="hidden" name="itemprice" value="10" />
<input type="hidden" name="itemQty" value="1" />
 Size:<input type="radio" name="itemname" value="1">10 x 10</select>   
<input class="dw_button" type="submit" name="submitbutt" value="Buy" />    
</td>
<tr>

<tr>
<td width="auto"><h4>Product test</h4></td>
<td width="auto"><form method="post" action="process.php">
<input type="hidden" name="itemprice" value="30" />
<input type="hidden" name="itemQty" value="1" />
 Size:<input type="radio" name="itemname" value="1">10 x 10</select>   
<input class="dw_button" type="submit" name="submitbutt" value="Buy" />      
</td>
<tr>

</table>

【问题讨论】:

    标签: php forms paypal checkout


    【解决方案1】:

    看到所有代码以及它是如何处理的,我的第一个猜测是你使用了相同的变量名,并且它覆盖了第一个。如果尚未使用数组,您可以创建一个数组,或者通过向其附加一个数字来增加变量名称。

    【讨论】:

    • 我无法更改变量名称,因为如果我关闭输入字段的每个部分,它也会阻止我选择多项选择。
    猜你喜欢
    • 2014-04-04
    • 2013-02-21
    • 2018-01-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-05-07
    • 2014-05-03
    相关资源
    最近更新 更多