|
Posted by Acrobatic on 01/05/08 19:14
On Jan 5, 12:44 pm, 6e <aot...@hotmail.com> wrote:
> I want to redirect a post because Im using "instant payment
> notification" from paypal, and I want to send the variables that I
> verified on the php page to a java servlet page.
If it's an internal redirect, why don't you write the $_POST variables
to $_SESSION variables, then redirect, then re-access them via the
session? Make sure you use session_write_close() to keep your sanity:
ie
session_start();
$_SESSION['product_name'] = $_POST['product_name'];
$_SESSION['customer_name'] = $_POST['customer_name'];
session_write_close();
header("Location:http://path/to/your/script/");
>
> > Should work for displaying the page (except for the relative/absolute
> > hrefs/src/targets), what do you mean by 'doesn't change'.
>
> > > $domain1 = "http://www.mydomain.com/myPage.html";
>
> > > $ch = 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
Navigation:
[Reply to this message]
|