I am using the code below to submit a search form.
I have made it required and would think that the site would throw an error if the user doesn't enter a value, but all it does is submit the form. Am I doing something wrong here?
Code:
<cfform name="QuickSearch" action="/classifieds/searchResults.cfm" method="post">
<cfinput type="text" name="txtQuickSearch" size="20" maxlength="100" required="yes" message="Please enter a search value.">
<input type="submit" name="submit" width="100" value="Search"><br/>
<a href="/classifieds/advancedSearch.cfm">Advanced Search</a>
</cfform>
I have made it required and would think that the site would throw an error if the user doesn't enter a value, but all it does is submit the form. Am I doing something wrong here?