I have form page, which is used to update a database.
I want to validate the data, and rather do it on the server.
If there's a blank field then add I want to add something like error=1 to a querystring; if there are 2 errors, then only add 2 error variables to the querystring; if there are 3, add 3 to the querystring:
This will enable me to highlight each field which requires data on the form page
I have to do this way 'cos if the user keeps missing a form field then at least they don't start from scratch i.e. all form fields empty.
started working on the code:
const numFields = 5
FOR EACH field in request.form
IF Len(request.form(field)) = 0 THEN
<a href = "update_record.asp?<%errorArray&idvalue="& Session("idvalue")%>">click here</a>