R
Richard
How do I prevent a submit action from occurring if the select
box has no value.
The box is for a database search where the user must enter
a keyword. Leaving the box empty triggers a blanket search
of the database and uses lots of processing time and gives too
many results. Is there something I can add to the submit button
to trap an empty select box and trigger a warning that something
must be entered?
<input type=hidden name="action" value="searchdbdisplay">
<input type="submit" value="Search">
Thanks in advance
box has no value.
The box is for a database search where the user must enter
a keyword. Leaving the box empty triggers a blanket search
of the database and uses lots of processing time and gives too
many results. Is there something I can add to the submit button
to trap an empty select box and trigger a warning that something
must be entered?
<input type=hidden name="action" value="searchdbdisplay">
<input type="submit" value="Search">
Thanks in advance