Hello everyone,
I am new here and in desperate need of some help
I am trying to build a new website and on it, I would like checkboxes for the domain checker instead of a drop down.
I have built the code but for some reason it keeps defaulting to .co.uk or .on (???) after clicking submit. Does anyone know why this is?
Here is part of it:
<form action="https://mydomain.co.uk/domainchecker.php" method="post" class="checkdomain form-inline">
<input type="hidden" name="direct" value="true" />
<div class="checkdomain-wrapper">
<p>If you order a hosting plan you may be able to qualify for a free for life domain name, where we will manage it for you and make any changes.</p>
<div class="form-group">
<label class="sr-only" for="domainnamehere-menu">Domain name</label>
<input type="text" name="domain" class="form-control" id="domainnamehere-menu" placeholder="Enter domain name here..">
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i> Search</button>
</div>
<hr>
<div class="clearfix"></div>
<div class="checkbox checkbox-warning">
<input id="domaincom-menu" type="checkbox" class="styled" checked>
<label for="domaincom-menu"> <option name="tlds[]" value=".com">.com</option></label>
</div>
I have played around with the settings for name= and value= but nothing seems to have worked.
I am only working on the .com at the moment and then will roll it out to the rest when it actually works. Any advice would be fab.
Thank you
Aaron
- - - Updated - - -
Forgot to add, that this item will not be in the same directory as my whmcs install.