Posted by MsKitty on 11/13/05 06:38
You need to use the eval statement in order to use a variable in a
variable name, something like:
eval("print \$_CONF['required_login_$i'];");
But I agree with the other commenters. Let the page determine this. I
usually put an include statement at the top of each file needing it.
The included code checks if the session login variable is set and if
not, uses a header statement to relocate to the login page.
Kitty
http://OpenSkyWebDesign.com
Navigation:
[Reply to this message]
|