Remove parts of form submission

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Atlante
    New Member
    • Dec 2010
    • 5

    Remove parts of form submission

    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.

    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>
    I'm pretty sure it's simple error handling but for the life of me, I just can't do it! Please help!!!
  • RamananKalirajan
    Contributor
    • Mar 2008
    • 608

    #2
    Hi,
    Make that field disabled="disab led" before submitting the form. That data won't be submitted.

    Thanks and Regards
    Ramanan Kalirajan

    Comment

    Working...