Firstly, there is no way todo this in ASP, see full explanation in the ASP FAQ (2nd one linked in my sig)
Ok, so you could do this in Javascript in two differant ways, either
a) put a keydown event in every input and call a function to check if it is the enter key. If it is the enter key return false, if it isn't return true. returning false will in effect stop that enter key from being registered by the form, while returning true will still allow the rest of the characters to be registered.
b) create a form validation function that makes sure all the forms have their minimum number of characters, use the onSubmit event in the form tag to call the function. Return false if you don't want it to submit, return true if you do want it to submit. Call the function like so:
Code:
<form method="POST" action="whatever.asp" onSubmit="return validateFunction();">
The return inside the onSubmit is what causes it to cancel or continue the submit based on the return value of the validateFunction.
-Tarwn ________________________________________________________________________________
Sometimes it is how you ask the question: faq333-2924
Many ASP questions have already been answered, please check faq333-3048 and use the search tool before posting