Hello
Now all the forms that i have made are like this

<form .... action="pagenamecheck.jsp">
...
</form>

So when someone send the form from the page 'pagename.jsp' i go to the 'pagenamecheck.jsp' and i do there the check and if there is something wrong i have to recreate all the page 'pagename.jsp' to the 'pagenamecheck.jsp' to show the user the error. Is my way of having the form correct or i should change it?
Thank you

Change it .... only submit the form after the input values have been validated.

action="pagenamecheck.jsp"

should be

action="ValidateForm()"

where ValidatedForm() is a function that validates the page first, then returns "pagenamecheck.jsp" if validation is good.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.