【发布时间】:2014-06-21 08:48:06
【问题描述】:
如何对用户隐藏 paypal 按钮代码?
例如 codecanyon.net,当我购买某些商品时,我看不到 paypal 表单,我该怎么做?
我的用户将编辑价格和货币代码
我使用的代码是这样的。
<form name="_xclick" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="me@mybusiness.com">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="item_name" value="Teddy Bear">
<input type="hidden" name="amount" value="12.99">
<input type="image" src="http://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</form>
【问题讨论】:
-
为什么不把风格放在上面呢? style='可见性:隐藏' ?
-
用户将使用检查元素进行编辑。
-
然后放置一个 php 条件,在您进行编辑操作时将其隐藏
-
你能给我演示一下吗?
-
您已经有了这个想法,如果它适合您的代码,您将如何使用它现在取决于您。