Here is my problem.
If I have a tag called {page} and its contents is:
Code: Select all
$p = "1";
$page[$p] = "This is page ".$p;
$p++;
echo $page[1];
echo $page[2];
This is page 1This is page 2
But if I put $p into a separate tag, so I hade
{p}
Code: Select all
$p = "1";
{page}
Code: Select all
$page[$p] = "This is page ".$p;
$p++;
echo $page[1];
echo $page[2];
This is page 1
I am entering {p}{page} into the page, so that is correct.
Why does it only output 1 page when I set $p in its own tag?
Does tags not recognize the value of variable from another tag?
Cheers,
Cobby


