PDA

View Full Version : Submitting information


PWJ
09-04-2002, 10:45 AM
Hello all,

I'd really apprechiate any help you could give me on the following......

I have a form collecting various details. The submit button is an image and users get directed to a thank you page in the same window on submission. However, I would also like a second window to open on submission with a different url. Is this possible and if so could anyone please suggest some code that I would need to use for the submitting image.

Thanks,

PWJ.

WA
09-04-2002, 11:45 AM
Hi:
Try something like:

<form onSubmit="window.open('http://www.yahoo.com')">

This will cause a window to pop up on submission containing Yahoo.com

PWJ
09-04-2002, 02:44 PM
Thanks but that doesn't seem to do it. My code is as follows:

<form method="post" action="http://www.btinternet.com/cgi-bin/userform.cgi">

I've tried:

<form method="post" action="http://www.btinternet.com/cgi-bin/userform.cgi"><form onsubmit="window.open('http://www.yahoo.com')">

and

<form method="post" action="http://www.btinternet.com/cgi-bin/userform.cgi" onSubmit="window.open('http://www.yahoo.com')">

please help:(

vkidv
09-04-2002, 03:00 PM
would you need somthing like this:

<FORM NAME="somthing" ACTION="" onSubmit="window.open('www.yahoo.com/')">

just wondered
or is it the same as his?


edit: did it wrong

vkidv
09-04-2002, 03:05 PM
yes it works!


my one works!

PWJ
09-04-2002, 07:09 PM
Cheers! it works. Thanks for sorting out this annoying problem!

:thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup: