When creating a html form using the textarea attribute. I have stumbled into a problem. I have restrained the textarea to a minimum of 30. However When i submit the form without putting anything in the textarea, the form gets processed. In contrast, when i enter lets say 1 character and then submit the form, the proper error message shows up, indicating to the user that the text does not meet the minimum requirements.
The question is, how do i make it so when i don't enter anything in the textarea, and submit the form, i get shown an error message rather than the form proceeding with the submission process.
<TEXTAREA name="text" ROWS="6" COLS="25" maxlength="500" minlength="30"> </TEXTAREA>