Page 1 of 1

passing variables between pages

Posted: Sun Jan 13, 2008 5:11 am
by drors30
Hi ,
I have a page in which i have some values that i want to pass to another page.
(It's not a form , it's a page that contains calculations of total prices or total scores) .
The second page is like a template with fields to which I want to transfer the values.

So it's look like : “Your total score is” [here is the place for the passed value]
"The total prize is “ [ “ “ ]
I want to achieve this by pressing a button from the first page. How ?

Re: passing variables between pages

Posted: Sun Jan 13, 2008 5:28 am
by JayBird
Have a look at sessions

http://uk.php.net/session

Re: passing variables between pages

Posted: Sun Jan 13, 2008 8:57 am
by jimthunderbird
There are fundamentally 4 ways to pass info between pages:

1. cookies
2. session
3. requrest variables
4. post variables

if you want the 4th way and don't want to create a form and if the client's browser most likely support AJAX, then use a AJAX post instead of traditional form post.