ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Form Validation
Subject:   Refresh problem
Date:   2003-03-27 16:10:36
From:   anonymous2
Instead of using

try using
onSubmit="return checkWholeForm(this)"

This should eliminate the problem of the page either refreshing and erasing all the fields or if you supplied an action="?" to another page it will stop it from loading that page.

Hope this helps.