Forum Moderators: coopster

Message Too Old, No Replies

Session variables/multiple frames

Having problem passing variables between frames

         

gEye

6:30 pm on Apr 2, 2004 (gmt 0)



I have some web pages that use multiple frames. Imagine a header/line situation with the header in one frame and the lines in another. An ID number is selected from a dropdown in the header section and the lines corresponding to that ID are retrieved and displayed. I'm using a session variable to pass the selected ID to the code that retrieves the lines.

I've verified that the two PHP "programs" have the same session ID. I've verified that everything is happening in the right sequence.

But the variable is not getting set. The "variable reader" program does not see what the "variable writer" program has written.

Any ideas? Is there a better way to do this?

jatar_k

11:45 pm on Apr 2, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld gEye,

what about just using a GET var to display?

I haven't really played around with sessions and frames because I never use frames. I would think that as long as you reload the pages in the right order it should be able to access the vars in the session.