Re: PHP & Frames?
| From: | William Lovaton | Date: | Mon, 25 Feb 2002 16:16:50 +0000 |
| Subject: | Re: PHP & Frames? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86109@lists.php.net to get a copy of this message | ||
You have to pass the params received in index.php to the rest of the
pages in the frames...
eg: http://mysite.com/index.php?s=1
so, the index.php script will looks something like this:
<frameset cols="*" rows="25%,*" border="1"
frameborder="1">
<frame src=head.php<? print "?s=$s" ?> name=menu>";
<frame src=body.php<? print "?s=$s" ?> name=main>";
<frame src=foot.php<? print "?s=$s" ?> name=foot>";
</frameset>
William.
El lun, 25-02-2002 a las 03:03, Jason Caldwell escribió:
> I'm trying to pass vars into a php (html) file that uses FRAMES -- top, main
> and bottom.
>
> The TOP frame has my menu items. The MAIN frame will show the pages, and
> the BOTTOM frame will have my footer stuff --
>
> Now, when I click on a menu item in the TOP frame I want the TOP and MAIN
> frames to update. My frame page is named: index.php and it links to
> head.php (goes in TOP frame), body.php (goes in MAIN frame), and footer.php
> (goes in BOTTOM frame.)
>
> So, what I tried (seems logical enough) is to simply call the INDEX.PHP file
> with some vars attached, like so <a
> href=http://127.0.0.1/index.php?s=1
> target=_top>Load Page</a>
>
> Within the Index.php Frames Page (which the var gets passed to) the other
> pages don't seem to recognize the var and simply do nothing --
>
> For example -- in the head.php file I have it update an image if s=1, and in
> the body.php file, if s=1 a certain page loads -- this all works fine
> without frames.
>
> Any suggestions -- I want to use frames if I can, and avoid Java.
>
> Thanks.
> Jason
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com