Mike4286 Posted February 1, 2017 Share Posted February 1, 2017 Hello, I have a custom domain search form on my website, although when entering a domain and click go, it goes to the WHMCS Register a Domain page, and customer has to enter the information again into the form and click search again. I have tried everything and cannot seem to make it carry the domain straight to the domain search process within WHMCS. Could someone help? This is my current form: <form method="post" id="domain-searchform" action="https://www.mydomain.com/host/cart.php?a=add&domain=register"> <div> <input class="input-text" name="s" id="s" value="Enter your Domain Name here..." onFocus="if (this.value == 'Enter your Domain Name here...') {this.value = '';}" onBlur="if (this.value == '') {this.value = 'Enter your Domain Name here...';}" type="text" /> <select class="switch"> <option value=".com">.com</option> <option value=".net">.net</option> <option value=".info">.info</option> <option value=".org">.org</option> <option value=".ca">.ca</option> <option value=".us">.us</option> <option value=".co.uk">.co.uk</option> <option value=".biz">.biz</option> <option value=".mobi">.mobi</option> <option value=".tips">.tips</option> <option value=".guru">.guru</option> </select> <input id="searchsubmit" value="Search" type="submit" /> </div> </form> 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 1, 2017 Share Posted February 1, 2017 Mike, it's your form variable names - the cart will be expecting sld (google) and tld (.com)... give it that, and assuming you aren't using captcha, you're good to go. <form method="post" id="domain-searchform" action="cart.php?a=add&domain=register"> <div> <input class="input-text" name="sld" id="sld" placeholder="Enter your Domain Name here..." type="text" /> <select name="tld"> <option value=".com">.com</option> <option value=".net">.net</option> <option value=".info">.info</option> <option value=".org">.org</option> <option value=".ca">.ca</option> <option value=".us">.us</option> <option value=".co.uk">.co.uk</option> <option value=".biz">.biz</option> <option value=".mobi">.mobi</option> <option value=".tips">.tips</option> <option value=".guru">.guru</option> </select> <input id="searchsubmit" value="Search" type="submit" /> </div> </form> that said, i'd be tempted to do it as a Data Feed as then that could auto-generate your list of TLDs from your pricing - e.g., the old domainchecker data feed would still work with v7. 0 Quote Link to comment Share on other sites More sharing options...
simplicitycpt Posted May 8, 2020 Share Posted May 8, 2020 how do i use the Domain Checker Form script on my web page 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 11, 2020 Share Posted May 11, 2020 On 08/05/2020 at 02:58, simplicitycpt said: how do i use the Domain Checker Form script on my web page either use the above form and ensure that the action URL goes to your WHMCS cart page, or use the Domain Checker data feed. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.