Click to See Complete Forum and Search --> : echo a string in another frame


tripwater
08-04-2003, 08:46 AM
I have a index.html page that sets up my frames. THe first page that loads is a login page that first goes to a (access.php) page that does a query and checks their permissions based on their position. In other words I have flags set for supportrep,admin,developer and include the next page and show them the appropriate menus based on what they are allowed to see.

I am now converting the site over to frames and I have the index (login) page pulling up correctly but what I need to know is how do I now instead of including the page & it's relative menus, load my now separate menus and text pages into my frames built from index.html?

I just need to know how to echo a string in php into another frame.

THanks for any help.

pyro
08-04-2003, 09:02 AM
I don't believe you'll be able to use PHP like this. It sounds like a javascript question to me...

Bootsman123
08-04-2003, 10:13 AM
It's a Javascript question, because you want to go from one frame to another frame and that's client-side.

tripwater
08-04-2003, 11:03 AM
Thanks for the urls.

I went to the javascript linkk and did a search and the reasults never came back on any of the searches...they may be having problems.

All of the forum links bring me to this forum.

I could not find what I needed on php.net either.

One solution I came up with (it is not a great one nor is it clean) was to place different index.html files in the appropriate folders.

So what would happen is I tell my developers/supportreps to go to the site url/supportrep or url/developers and the index.html within their folder loads their info into the frames set up on their index.html.


I wish I could just have them pull up the login page hit submit, it go to my access page that determines who they are then just include or target their menu and data page into the correct frames setup on one index.html file.

If you know how to do this it would be great, otherwise I am going to use these multiple index.html files for now. Thanks.