variable values seem to pass to includes on my system...
snoyes solution probably works well.
>I am trying to set some variables before including a file. Essentially what I was trying to do is prevent access to a particular page >using a session variable, but since I am including this file in an IFRAME that will not work.
I use $_SESSION variables in an IFRAME all the time... doesn't cause me any problems in IE or FF.
did you try this?
Main Topics
Browse All Topics





by: snoyes_jwPosted on 2005-06-30 at 08:08:23ID: 14338969
Why not instead say
if ($var1 == "blah")
include("file.php");
Then file.php doesn't have to worry about whether it should run or not.