Page 1 of 1

Need help moving data from php page to php page

Posted: Thu Jun 25, 2009 3:33 pm
by podarum
I have a form I've created where on submit the data goes to a process.php page that shows and also calculates the fields inputed in the form. If I want to keep on moving this data from the process.php page to yet another process2.php page coming from the porcess.php page.. how can I do it..

Right now in form I use <form action="process.php method="post" ...>
In process.php I have (for example) $Score = $_Post['Score']; and $NewScore = 1.2*$Score;
I want from process.php to yet post this data to a new prosess2.php page.

You see I'm trying to insert somehow a PayPal page where the customer only gets the results from process.php if and only if they had made and verified a payment...and I have no idea on how to do that :( .. Thanks

Re: Need help moving data from php page to php page

Posted: Thu Jun 25, 2009 3:38 pm
by jamkelvl
Hey

I'm pretty new to PHP myself but I have done something like this before.

There a few ways you can go about this...

Try session cookies, passing the information through the URL or even saving the information to a database and then calling it from the second page.

Depends on what the information of course.