When you define the index.php and load the frames go ahead and start the
session and then pass the variables to the frame like this:

<frameset>
<frame src="main.php?var1=test&var2=test" ...>
<frameset>
and then on main.php if you echo $var1 it will it will print "test"

Good Luck!

.:: Nathan Cook [ [EMAIL PROTECTED] ] ::.
Systems & Network Administrator :: Programmer
[ phone - 208.343.3110 ][ pager - 208.387.9983 ]
----- Original Message -----
From: "Chris Hayes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 01, 2001 1:22 PM
Subject: [PHP] sessions with frames


> hi!
> i would like to read in a txt file in the frame index page and use it
> through a session in pages.
>
> It does not work if index.php starts the session and succesfully registers
a
> var, because a php page in a frame does not recognize the var.
>
> Chris
>
>
> --------------------------------------------------------------------
> --  C.Hayes  Droevendaal 35  6708 PB Wageningen  the Netherlands  --
> --------------------------------------------------------------------
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to