Bluehost.com Web Hosting $6.95

PHP with Frames (cont.)

This is a discussion on PHP with Frames (cont.) within the PHP General forums, part of the PHP Programming Forums category; No, he's right - this is an issue. Do variables persist between PHP files? In the attached scripts I have ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-27-2003
Rich
 
Posts: n/a
Default PHP with Frames (cont.)

No, he's right - this is an issue.

Do variables persist between PHP files?

In the attached scripts I have a login page which directs the user, on a
sucessful login, to a front page which is a frameset.

The login.php opens a connection to a MySQL database ($connection) but once
the browser has been re-directed to the frame-root.html page this variable
is no longer available.

Kb wrote:

> Hi,
>
> Does anyone know why my PHP pages won't work in Frames? I have 5 frames,
> each of which are displaying PHP pages.....and none of the PHP code works.
>
> If I run the code outside of Frames it works fine!
>
> I've can't find any decent references for PHP in Frames.
>
> Your help would be appreciated.
>
> Thanks
>
> Kevin


--
UEA/MUS::Record Library
--
UEA/MUS::Record Library
Reply With Quote
  #2 (permalink)  
Old 10-27-2003
Larry Brown
 
Posts: n/a
Default RE: [PHP] PHP with Frames (cont.)

Are you trying to access variables between frames or just get a php script
to run when it is one frame. I have php pages running in frames in a number
of places. You could not access variables between the frames though. You
would have to use a client side script to do that. You could have something
like javascript deal with passing variable around on the client's browser
and then ultimately post the result back to the server in a form etc.

-----Original Message-----
From: rich [mailto:richard.lewis@uea.ac.uk]
Sent: Monday, October 27, 2003 2:23 PM
To: php-general@lists.php.net
Subject: [php] PHP with Frames (cont.)


No, he's right - this is an issue.

Do variables persist between PHP files?

In the attached scripts I have a login page which directs the user, on a
sucessful login, to a front page which is a frameset.

The login.php opens a connection to a MySQL database ($connection) but once
the browser has been re-directed to the frame-root.html page this variable
is no longer available.

Kb wrote:

> Hi,
>
> Does anyone know why my PHP pages won't work in Frames? I have 5 frames,
> each of which are displaying PHP pages.....and none of the PHP code works.
>
> If I run the code outside of Frames it works fine!
>
> I've can't find any decent references for PHP in Frames.
>
> Your help would be appreciated.
>
> Thanks
>
> Kevin


--
UEA/MUS::Record Library
--
UEA/MUS::Record Library
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 04:25 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0