...

View Full Version : Retaining variable values when the page reloads



alex57
01-25-2007, 02: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?????

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

Read this page for more information:

http://us2.php.net/manual/en/ref.session.php



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum