I have a script that processes a form, adds some stuff to a database, and I need it to then Redirect and Post some data to another site/page.
I am able to post to the page using a sendToHost function, but I need the user to go to that page with the data as well.
I'm pretty sure that you cant do this with the header function, and I cannot use the Get function because it is not allowed for this purpose.
Is there any way to do this with Curl or something else. I have searched around all morning, and while I can find 50 ways to have php post the data to the page, I haven't found a way for the user to get redirected to that page and the Post variables go with them.
Any help would be appreciated.
2006-09-15
05:41:29
·
3 answers
·
asked by
Jestep
5
in
Computers & Internet
➔ Programming & Design
**In response to Elmer**
I need php to send the user and the data exactly like I just hit a submit button. I would use a form itself to post to the page, but I need php to process some data for my site, and then send it and the user to another site. I dont need any response at all from curl, since the user should no longer be on my website.
2006-09-15
05:51:30 ·
update #1
I was tempted to write an Ajax script and use a javascript redirect to send the user to the other page, but I cant take the usability risk of using javascript, and having users with incompatible browers.
2006-09-15
05:54:00 ·
update #2