有没有办法没有从标签创建标签?

问题描述 投票:0回答:1

我正在制作一个带购物车的简单网站,我正在使用Paypal“添加到购物车”按钮代码:

<form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" 
 method="post">

<!-- Identify your business so that you can collect the payments. -->
<input type="hidden" name="business" value="[email protected]">

<!-- Specify a PayPal Shopping Cart Add to Cart button. -->
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">

<!-- Specify details about the item that buyers will purchase. -->
<input type="hidden" name="item_name" value="Birthday - Cake and Candle">
<input type="hidden" name="amount" value="3.95">
<input type="hidden" name="currency_code" value="USD">

<!-- Display the payment button. -->
<input type="image" name="submit"
src="https://www.paypalobjects.com/webstatic/en_US/i/btn/png/btn_addtocart_120x26.png"
alt="Add to Cart">
<img alt="" width="1" height="1"
src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif">
</form>

我的右上角还有一个购物车标识,我只想通过点击标识访问购物车。有没有办法让表单将数据发送到paypal购物车但不打开购物车选项卡/窗口?

html forms button paypal shopping-cart
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.