I am writing a small asp program to read the contents of a form, validate it and send an email.
The problem I have is with the validation. Obviously I only want any error message to be displayed after the Submit button is pressed. At present the validation checking occurs before the form is displayed and therefore shows an error message before the user enters any data.
Is there a 'standard' way of doing this? Thanks.
The problem I have is with the validation. Obviously I only want any error message to be displayed after the Submit button is pressed. At present the validation checking occurs before the form is displayed and therefore shows an error message before the user enters any data.
Is there a 'standard' way of doing this? Thanks.