...

View Full Version : form validation



hendryk
07-23-2002, 03:28 PM
Hi,

Can someone help me?

I am trying to validate a form. If something is entered wrongly and an alert box comes up, the user clicks OK but the form is
reloaded. i.e all the stuff they have filled in is lost. How do I get so the form comes up again and the can just change the mistake and everything else is still there.

Thanks

K

tommysphone
07-23-2002, 03:59 PM
Have you a url for the form? Failing that, change the value of the submit button from Send if it is set at that and set it to call the function that validates the form.

I hope this helped.

jkd
07-23-2002, 06:56 PM
Wrong forum - I'll move this to Javascript Programming.

adios
07-23-2002, 07:01 PM
Are you doing:

<form.....onsubmit="return validator()">

...or:

<input type="submit" onclick="return validator()">

Both are necessary; don't omit the 'return'....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum