phpmonkey
|
| Posted: 09/23/2002, 8:27 PM |
|
on a page i have a lable called right_col. it is just on the page - not inside a form.
i need to check some conditions and determine the value of that. so in the page "before show" i have the following code...
global $Tpl;
if (some condition){
$value = "some value";
}else{
$value = "some other value";
}
$Tpl->SetVar("right_col",$value);
so why won't this work? the page just loads but right_col has no value.
|
|
|
 |
Nicole
|
| Posted: 09/25/2002, 4:31 AM |
|
Hello,
create field Before Show event and put the code there,
|
|
|
 |
|