POSTing the same data to two different pages

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

Modeps

Lifer
Oct 24, 2000
17,254
44
91
Looks like I misunderstood what you meant by hiding the form... I thought you were still talking about transparent submission.
 
Apr 25, 2004
44
0
0
Originally posted by: Modeps
Looks like I misunderstood what you meant by hiding the form... I thought you were still talking about transparent submission.

For that solution ... both.

User enters in data in all the fields. Hits submit. My script emails the person all the information. Then uses those variables to fill in the form again. This time the form is submited to the 3rd party.

I can use the body onload stuff to have the form be submited when the page loads. I actually got that to work. The problem is that the end user would have been confused as hell by either hitting submit twice or by seeing the form twice. So, I figured if I could just hide it and let it run, all would be nice in toy land.

Well, the problem was that submiting the info took them to the 3rd party website and took them away from our site. That was no good. At some point I was toying with the idea of doing that in an iframe but while I was looking at that, I figured out how to get it to work in PHP.