有没有办法让没有from标签创建标签?

时间:2017-12-23 20:03:29

标签: html forms button paypal shopping-cart

我正在制作一个带购物车的简单网站,我正在使用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="kin@kinskards.com">

<!-- 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购物车但不打开购物车选项卡/窗口?