2013-02-25 48 views
0

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

<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> 

回答

0

随着看到所有的代码,它是如何被处理的,我的第一个猜测是,你usnig相同的变量名,它是压倒一切的首位。如果尚未使用数组,则可以创建一个数组,或者通过向其添加数字来增加变量名。

+0

我无法更改变量名称,因为如果我关闭了输入字段的每个部分,它也会阻止我选择多项选择,因为它设置为付款结算检出。 – 2013-03-01 22:55:17