zomex Posted April 16, 2020 Share Posted April 16, 2020 Hello, The integration code under utilities has the domain search HTML used for performing domain searches from outside of WHMCS. This will not work if Google invisible re-capcha is enabled for domain searches. <form action="/cart.php?a=add&domain=register" method="post"> Find your Domain: <input type="text" name="query" size="20" /> <input type="submit" value="Go" /> </form> Since this code and comparing with the homepage domain search on the Six template a lot has changed. The six template uses domain for the text input name instead of query. The action URL uses domainchecker.php, has a hidden field and the search button has 2 classes which appear to be to pass the captcha (btn-recaptcha & btn-recaptcha-invisible). I have made some updates as per the Six template but it is very buggy when using from a page outside of WHMCS: <form action="/domainchecker.php" method="post" id="frmDomainHomepage"> <input type="hidden" name="transfer" /> <input type="text" name="domain" autocapitalize="none" placeholder="Search for your perfect domain name!" /> <input type="submit" class="btn btn-recaptcha btn-recaptcha-invisible" value="Search" /> </form> For example it will show the no characters entered during the search but will end with the domain available message. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted April 16, 2020 WHMCS Support Manager Share Posted April 16, 2020 Hi @zomex, I can confirm that the integration codes won't be able to submit form data to forms with captcha protection turned on. This is part of the captcha design and has been the case since the basic 5-char captcha was added many years ago. You'd need to disable captcha on those forms in order to use the integration codes to submit data from an external form. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted April 16, 2020 Author Share Posted April 16, 2020 4 hours ago, WHMCS John said: Hi @zomex, I can confirm that the integration codes won't be able to submit form data to forms with captcha protection turned on. This is part of the captcha design and has been the case since the basic 5-char captcha was added many years ago. You'd need to disable captcha on those forms in order to use the integration codes to submit data from an external form. Thanks for the reply. Over the years I have updated my form with changes made to the one on the Six homepage. It is not perfect but at least it doesn't result in an error when the captcha is enabled. Would be worth replacing the example in utilities > integration code with the following rather than keeping one that will result in a error for anyone using a Capcha: <form action="/domainchecker.php" method="post" id="frmDomainHomepage"> <input type="hidden" name="transfer" /> Find your Domain: <input type="text" name="domain" autocapitalize="none" placeholder="Search for your perfect domain name!" size="20" /> <input type="submit" class="btn btn-recaptcha btn-recaptcha-invisible" value="Search" /> </form> 0 Quote Link to comment Share on other sites More sharing options...
juaksjdhaksdh Posted September 14, 2020 Share Posted September 14, 2020 Hello Do we have any update about this issue? My domain search bar just redirects to the WHMCS domain registration page. It doesnt include the domain entered or availability. Before it used to work fine.. 0 Quote Link to comment Share on other sites More sharing options...
Bidi Posted February 4, 2022 Share Posted February 4, 2022 Hello, I need a fix for this two 0 Quote Link to comment Share on other sites More sharing options...
FutureX Posted August 29, 2022 Share Posted August 29, 2022 Yes needs to function properly with Captcha. I have reCaptcha setup via Plesk for the whole server so I can't turn it off for 1 form and if I did I would get tons of spam on that form. Thanks! 0 Quote Link to comment Share on other sites More sharing options...
snake Posted August 29, 2023 Share Posted August 29, 2023 I am redeveloping my website and am having this issue. But it does not occur on the old/existing site, which means it obviously is possible to get this working with captcha enabled, but I just don't know how, as I have not done anything special on the old site. 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.