Click to See Complete Forum and Search --> : calling 2 function with 1 submit button


peter butler
12-19-2003, 07:55 AM
hello,
on my form when i submit, i call a function to validate the data. I also have 2 radio buttons for yes and no as one of the questions. i want the browser to direct to different pages depending on which radio butten the user selected. how do i have a function for validation and a function for redirection called when the user submits the form? can i call 2 functions within the onSubmit?

Pittimann
12-19-2003, 08:59 AM
Hi!

Apart from the things you described: do any form data have to be processed as well? Maybe you better posted the code of your form (including the js, if you already have it)...

Cheers - Pit

ray326
12-19-2003, 10:07 AM
In this case I think you'd be better off calling a single funtion from the onsubmit that called your other functions and decided whether to return true or false.