CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 [SOLVED] What page is currently loaded?

Print topic Send  topic

Author Message
jsherk

Posts: 34
Posted: 01/24/2009, 8:03 AM

I have an includable page that is added at the top of all the other pages in my project.

I want to modify the text displayed by the includable page depending on which regular page is loaded.

Is there a way for the includable page to check and see which regualr page it is being loaded with?

Example:

home.ccp (home.php) has an includable page inserted at the top called mymenu.ccp. Can my mymenu.ccp determine that it was loaded by home.ccp in this particular example?

Thanks
View profile  Send private message
jsherk

Posts: 34
Posted: 01/24/2009, 8:24 AM

Figured it out!!!

It's the global $FileName variable..

Example:

global $FileName;
echo $FileName;
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.