You are here: Re: help « PHP Programming Language « IT news, forums, messages
Re: help

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация