Hello all! I have the following form used to search for domain names in my website. I don't want the form to submit if the client enters a tld eg: .com .org or .net.
I'm pretty sure it's simple error handling but for the life of me, I just can't do it! Please help!!!
Code:
<form action="http://www.mydomain.com/clients/whmcs/cart.php?a=add&domain=register" method="post"> <input type="hidden" name="token" value="4445754545" /> <input type="hidden" name="tld" value=".com" /> <input type="text" class="searchbox" name="sld" id="search" value="" /> <input type="image" onclick="isAlphabet(document.getElementById('letters'), 'Oops Letters only please'!)" src="images/go_button.jpg" id="btn-submit" class="searchbox_submit" value="" /> </form>
Comment