php and frame problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
orangeapple
Forum Commoner
Posts: 70
Joined: Tue Jan 06, 2004 1:24 pm
Location: Geneva / Switzerland

php and frame problem

Post by orangeapple »

Hi there,

I have a problem with a 2 frames page :
- frame 1 is the margin with navigation buttons
- frame 2 is the main frame of the page

I need to send variables to the files of both frames. I thought I could do that by sending the variables to the margin, then stuff would be echoed in the margin depending on the variables and then the margin file would activate + send the variables to a file in the main frame automatically.

This seems not to be possible since it is not possible to echo things in the margin with a php 'header'.

Who can help ?

Thanks a lot !!!
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

You can send variables between frames using the GET method.

Code: Select all

<a href="http://domain.ext/somepage.php?var1=somevalue&var2=anothervalue" target="name_of_the_target_frame">
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

you can also tranfer a lot of data with sessions: [php_man]session[/php_man]
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

Post by liljester »

id have to go with feyd on this one =)
Post Reply