Women in Technology

Hear us Roar



Article:
  Form Validation
Subject:   Refresh problem
Date:   2003-03-27 16:10:36
From:   anonymous2
Instead of using
onSubmit="javascript:checkWholeForm(this);"


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.