将Paypal添加到简单的网站

Add Paypal to simple website

本文关键字:网站 简单 Paypal 添加      更新时间:2024-05-01

<!DOCTYPE html>
<html>
<head>
  <title>Our Company</title>
  <link href="site.css" rel="stylesheet">
</head>
<body>
  <div id="main">
    <h1>E-commerce Website</h1> 
    <h2>Website Pages:</h2>
    <p>Home Page</p>
    <p>About Us</p>
    <p>Our Products</p>
    <p>Buy Now</p>
    <footer id="foot01"></footer>
  </div>
  <script src="script.js"></script>
</body>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top">
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="business" value="Email">
  <input type="hidden" name="lc" value="GB">
  <input type="hidden" name="button_subtype" value="services">
  <input type="hidden" name="no_note" value="0">
  <input type="hidden" name="currency_code" value="GBP">
  <input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest">
  <input type="image" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_buynowCC_LG.gif" border="0" name="submit" alt="PayPal – The safer, easier way to pay online.">
  <img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1">
</form>
</html>

这是一个非常简单的HTML页面,我正试图添加一个我从贝宝网站上得到的关于如何添加贝宝按钮的代码,并且(他们说当我将其添加到我的页面时应该可以使用)它不起作用。。。表单标签标记为红色错误??

感谢您提前提供帮助!

所有要显示的HTML内容都需要在之间

<body>

</body>

标签。只需将Paypal内容移动到关闭的</body>上方即可。