How to make fields mandatory in web email form
I have some web mail forms in classic asp, where there are some of the fields that are mandatory. At the moment it will be checked on the next page (after clicking the submit button), by simply checking whether the length of the input was >0. If it's not, an error is displayed.
Isn't there a smarter way to do this, on the first page with the form on? Something so I define whether a field is mandatory or not?
I'm not sure if this can be handled by normal html or classic asp, or whether I should use some kind of Javascript.
The ideal solution could be that if I field is not filled out, it will not submit the form, but write in read below the field, that it should be filled.
I know this can be done, but not how.
Thanks.
Best regards,
Thomas
-- Lisa G