首页 > 解决方案 > 自定义域搜索栏 WHMCS 集成

问题描述

我正在尝试将 WHMCS 中的几行代码集成为“域搜索栏”,该栏将在输入字符串时搜索可用性。这是域订购允许潜在客户直接进入具有输入域的购物车。见下文:

<form action="https://sales.tgitmedia.co.za/cart.php?a=add&domain=register" method="post">
Find your Domain: <input type="text" name="query" size="20" />
<input type="submit" value="Go" />
</form>

接下来,我找到了一个使用 CSS 设置样式的免费 Colorlib 搜索栏主题。但我不确定如何将这两个代码混合在一起以使搜索按钮在输入内容时起作用。

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="author" content="colorlib.com">
    <link href="https://fonts.googleapis.com/css?family=Poppins" rel="stylesheet" />
    <link href="css/main.css" rel="stylesheet" />
  </head>
  <body>
    <div class="s130">
      <form>
        <div class="inner-form">
          <div class="input-field first-wrap">
            <div class="svg-wrapper">
              <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
                <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"></path>
              </svg>
            </div>
            <input id="search" type="text" placeholder="Enter your website name" />
          </div>
          <div class="input-field second-wrap">
            <button class="btn-search" type="button">SEARCH</button>
          </div>
        </div>
        <span class="info">example .com .co.uk .net </span>
      </form>
    </div>
    <script src="js/extention/choices.js"></script>
  </body><!-- This templates was made by Colorlib (https://colorlib.com) -->
</html>

我尝试了很多次来整合这两个代码,但没有运气。请问有什么帮助吗?

标签: searchdnssearchbarwhmcsform-control

解决方案


推荐阅读