我试过这段代码,但我没有得到回应
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" name="fm">
<input type="hidden" name="cmd" value="_cart" />
<input name="currency_code" type="hidden" value="GBP" />
<input type="hidden" name="business" value="test_biz@email.com" />
<?php
for($m=0;$m<4;$m++){
?>
<input type="hidden" name="quantity_<?php echo $m+1; ?>" value="1" />
<input type="hidden" name="item_name_<?php echo $m+1; ?>" value="<?php echo "fhghg"; ?>" />
<input type="hidden" name="amount_<?php echo $m+1; ?>" value="<?php echo 10; ?>" />
<?php
}
?>
<input name="no_shipping" type="hidden" value="2" />
<input type="hidden" name="upload" value="1" />
<input type="hidden" name="return" value="http://localhost/test/test1.php" />
<input type="hidden" name="cancel_return" value="http://localhost/test/test.php" />
<input type="hidden" name="notify_url" value="http://localhost/test/test.php">
<input type='submit' name='submit' value='submit' />
</form>
我有用于打印响应echo
的数组。print_r($_POST)
它显示为Array()
如何解决这个问题?如何将变量传递给多个项目的贝宝?