This might be pretty simple, but its been bugging me all day. I have a form that
can be submitted in two states, therefore requiring two differnt validation scripts.
As well, each submit needs to go to a differnt action page :).
Right now, I have submit buttons w/ onClick handelers to send the user to the right page.
I can't seem to get the validation to work properly. Is it possible to pass a variable when the
submit is pressed and there for run only a portion of the validation (if (var is defined) {run validation}; etc?
As well, what would my onSubmit look like?
Thanks!
Start Free Trial