CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 Include page if expr=True (CCS1.0.7)

Print topic Send  topic

Author Message
Maris Kalnins
Posted: 03/03/2003, 2:06 AM

Hi all!

What is the best solution for including pages when some expression evaluates
to TRUE?

For example I have a page default.php and it can get 3 different cmd
parameters:
default.php?cmd=register
default.php?cmd=gallery
default.php?cmd=mailbox

default.php looks like this:

<html>
.....
{register}
{gallery}
{mailbox}
.....
</html>


where {register}{gallery}{mailbox} are included pages
Now in default.php Custom Code I want to do something like this:

global $cmd;
if ($cmd=="register"){
//set some value to true to include page register
//set some value to false not to include page gallery
//set some value to false not to include page mailbox
}
....

any suggestions?
Thanks

Maris

Shawn Mason
Posted: 03/06/2003, 9:29 AM

Assuming they are "forms" on your page, then you would actually hide them
accordingly instead of showing them. CCS assumes if it's there it should
show it. the exact PHP function used to do this I'm afraid I can't tell you
but look for "Show" in the code.

--
Kindest Regards,

Shawn Mason,CCD,MCP
I.S. Software Design Associates


"Maris Kalnins" <proximus@e-teliamtc.lv> wrote in message
news:b3v9fr$5rn$1@news.codecharge.com...
> Hi all!
>
> What is the best solution for including pages when some expression
evaluates
> to TRUE?
>
> For example I have a page default.php and it can get 3 different cmd
> parameters:
> default.php?cmd=register
> default.php?cmd=gallery
> default.php?cmd=mailbox
>
> default.php looks like this:
>
> <html>
> ....
> {register}
> {gallery}
> {mailbox}
> ....
> </html>
>
>
> where {register}{gallery}{mailbox} are included pages
> Now in default.php Custom Code I want to do something like this:
>
> global $cmd;
> if ($cmd=="register"){
> //set some value to true to include page register
> //set some value to false not to include page gallery
> //set some value to false not to include page mailbox
> }
> ...
>
> any suggestions?
> Thanks
>
> Maris
>
>


   


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.