Page 1 of 1

php and frame problem

Posted: Wed Jul 21, 2004 1:44 am
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 !!!

Posted: Wed Jul 21, 2004 11:24 am
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">

Posted: Wed Jul 21, 2004 12:00 pm
by feyd
you can also tranfer a lot of data with sessions: [php_man]session[/php_man]

Posted: Wed Jul 21, 2004 4:07 pm
by liljester
id have to go with feyd on this one =)