你好,我只需要做一个简单的页面。并且需要练习如何将paypall集成到我们的网站中并使用它。但我不知道这是什么问题,它将我重定向到400错误页面。这是我的代码。
<table class="right" >
<?php
while($row = $results->fetch_assoc()){
?>
<tr>
<td class="image-container"><img src="images/<?php echo $row['image']; ?>" class = "image"/></td>
<td><h3 class="Product-Name">name: <?php echo $row['name'];?></h3> <h4>Price <?php echo $row['price']; ?></h4></td>
<td>
<input type="hidden" name="cmd" value="_ext-enter">
<form name = "subs" action = "https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_blank">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="currency_code" value="EUR">
<input type="hidden" name="business" value="mona22-merchant@softgetix.com">
<input type="hidden" name="amount" value = <?php echo $row['price'] ?> id="paypalamt">
<input type="hidden" name="item_name" value = <?php echo $row['name']?> id = "name" >
<input type="image" src="../images/mobile2.jpg" border="0" name = "submit">
</form>
</td>
</tr>
<?php }?>
</table>