Click to See Complete Forum and Search --> : Directing a form to two possible frames?


briandunning
05-16-2003, 09:57 PM
I have a form with two submit buttons: if one submit button is clicked, the form results will appear in the same browser window; but if the second submit button is clicked, the results need to appear in a target="_blank" window.

I can't figure out how to do this: both destinations need some of the form fields entered by the user. Is there a way to use JavaScript to accomplish this?

Thanks!

khalidali63
05-17-2003, 09:55 AM
You will have to do more then just target="_blank"
You will need to point it to a specific page and then retrieve the values from the form fields to the child window.
If you are using server side scripting then you will be able to populate fields by that,but just the target="_blank" will not do what you intend to do.:D