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
>
>
|
|
|
 |
|