[thelist] 1 form, 2 destinations

Joshua Olson joshua at waetech.com
Thu Jul 29 09:24:55 CDT 2004


> -----Original Message-----
> From: Rob Smith
> Sent: Thursday, July 29, 2004 9:33 AM
>
> Hi,
>
> I want to start your creative juices this morning with an interesting
> problem. I have one form (method="POST"), and I want the form data sent to
> two places. The primary action of the form is and has to remain
> pointing to
> another server (Pay pal for example), and I want the form data to also go
> somewhere else?
>
> I would really like to open the Pay pal screen in a new window, so the
> customer can pay, as well as send the form data to a order submission
> process to email customer service there's a new order or what have you.
>
> I was hoping to do something like this:
>
> <form action="https://www.paypal.com/cgi-bin/webscr" method="post"
> target="_blank" onSubmit="window.location.href='ThankYou.asp'">
> ...
> <input type="image" src="grfx/ProceedToCheckout.gif" name="submit"
> width="200" height="35">
> </form>

Rob,

You ask some of the oddballest questions.  That aside, try this:

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"
target="_blank" onSubmit="setTimeout('window.location.href =
\'ThankYou.asp\'', 100); return true;">
  <input type="submit" value="test">
</form>

<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168





More information about the thelist mailing list