|
Posted by Rik Wasmus on 01/05/08 18:17
On Sat, 05 Jan 2008 19:06:35 +0100, 6e <aotemp@hotmail.com> wrote:
> Hi!
Hi!!
> Please help!!!
OK!!!!
> Im using php and Im trying to redirect my users to a new page along
> with keeping all of the POST variables...
Impossible, unless you rely on javascript tricks, at least an external =
redirect.
> I tried 2 things
>
> 1. Using this echo (below), but I can't figure out how to send along
> the post variables..
Forget about this one.
> 2. Using Curl - note I changed the tunnelling ip address to
> xx.xxx.xxx.xxx for this post
> but the page doesn't change..
Should work for displaying the page (except for the relative/absolute =
hrefs/src/targets), what do you mean by 'doesn't change'.
> $domain1 =3D "http://www.mydomain.com/myPage.html";
>
> $ch =3D curl_init();
> curl_setopt ($ch,CURLOPT_URL,$domain1);
> curl_setopt ($ch, CURLOPT_RETURNTRANSFER,1);
Are you sure you want returntransfer?
And why exectly do you need this construct (redirect a post)?
--
Rik Wasmus
[Back to original message]
|