Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form validation against a database using JSP 1

Status
Not open for further replies.

bublathejuggla

Technical User
Sep 21, 2002
16
GB
hi. i have a registration page contructed using HTML where users can enter their personal details to register with my system. I have used javaScript to validate the inputs by i.e. checking no fields have been left blank. On submission, if the user selects the same userid as an existing user, they are directed to an error page stating the error and they can follow a link back to the registration page to make an alternative choice. HOWEVER, javascript.history.back(), which is what im using, retains all previous inputs on returning to the registration page. This includes the previous userid the user entered so they are again taken to the error page. This event loops and is inevitable! does anyone please know a way around this?
 
Why not just create a normal link to the registration page with the name of the registration page hard-coded.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top