in reply to onSubmit Redirect
I'm a little unclear as to what you are trying to achieve, but it looks like you want to submit the form data to two seperate scripts, only one of which returns something useful to the user.
Forget about "onsubmit", using client side scripting is unreliable at the best of times, and I don't think it can solve your problem anyway. The standard (and the only really safe) technique to do this is to:
If you need to decide which script to process the data with depending on a user selection in the form (including the clicking of a specific submit button) you can check the value of the parameter in the first script and use that to decide which (if any) other script to redirect to (i.e. what to specify after Location in the headers).
(As a side note, when writing HTML (not HTTP headers) ampersand characters (&) must be escaped as (&) except under certain circumstances, which the above data doesn't fall under, when the escaping is optional)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: onSubmit Redirect
by hok_si_la (Curate) on Feb 04, 2005 at 19:49 UTC |