GreenMnMs
03-05-2003, 08:23 PM
The project I'm working on uses a <form> on Website1 to pass user supplied data to a different website: Website2. (Pretty simple so far!)
The problem is that I want to process some or all of the information on the original Website1 too; such as logging the clickthru and some of the data in a database.
I can get the <form> to "POST" to a PHP script on Website1 which logs the click-thru but how can I then re-send or re-"POST" the original data to Website2?
Or would a better approach be to have the process "branch" somehow so that both things happen simultaneously. Maybe by passing the data to a new separate window which opens a PHP script, processes the data, and then closes the window only leaving the original window with Website2 showing. Could this be done with the javascript "onClick=" thing added to the SUBMIT tag like:
<input type=Submit onClick="http://www.Website1.com">
Any thoughts? Have I made this clear or confusing?
The problem is that I want to process some or all of the information on the original Website1 too; such as logging the clickthru and some of the data in a database.
I can get the <form> to "POST" to a PHP script on Website1 which logs the click-thru but how can I then re-send or re-"POST" the original data to Website2?
Or would a better approach be to have the process "branch" somehow so that both things happen simultaneously. Maybe by passing the data to a new separate window which opens a PHP script, processes the data, and then closes the window only leaving the original window with Website2 showing. Could this be done with the javascript "onClick=" thing added to the SUBMIT tag like:
<input type=Submit onClick="http://www.Website1.com">
Any thoughts? Have I made this clear or confusing?