View Full Version : Retaining variable values when the page reloads

01-25-2007, 01:13 PM
I have two iframes within a webpage. The second iframe posts a variable to the first when a hyperlink is clicked.

The first iframe retrieves the value after refreshing, then creates a php object using the data sent from iframe 2 and outputs the value.

The user can then click on another hyperlink in the second iframe and pass another value to the first iframe in the same way. A second object is created and both values are read out.

HOWEVER, the first value doesnt appear, im guessing as the object was destroyed on the second refresh. How can I retain the values even after a refresh?????

01-25-2007, 03:42 PM
To achieve this you will have to use sessions.

Read this page for more information: