I use three frames on my site, and my problem is to update them. The menu with links are placed in the left frame, and it is these links I like update depending on what actions the visitor are preforming.

On my own server I start a session, and then declares some session variables. In the left frame I read these variables, decides wich links to show and then uses a javascript (in my mainframe) to update the left frame. This works fine.

The web hotel that I uses, seems to have a different configuration of theire server.
When I try to start a session it works if I don't have any other output on that side, otherwise I can't do anything beacuse the header will be sent as soon as I write session_start().
I have tried to use output buffering, but it doesen't seems to have any effect. If I exclude the session_start() command in the left frame, I can't read the session variables.
In my main frame I pass the user id along with the links, and reads the variables from a database, but I haven't figured out if I can send them to a page that I'm just updating when I pass a link to my main frame. Is it possible to send the user id with the javascript? Or can I use some PHP code to update the left frame?

Has anyone understod anything of what I wrote above...

    PHP doesn't know you use frames. PHP only knows how to write HTML pages. If you need some CLIENT interaction, like playing with frames, you should use common HTML or Javascript.

      Thank you.

      Some javascript solved the problem.

        Write a Reply...