sydneyguy
asked on
passing a php smarty varable to the tpl page before it is compiled
I have a php page say abc.php which has a tpl page that is compiled off the abc.tpl which cretes abc.tpl.php and i have a varable $_GET['sel'];
and am trying to access this varable in a if statment ie
{if $_GET['sel'] == 'lib'} ****** this syntax is not correct but what i need how to extract the passed varable to a pre compiled tpl page this the correct synatax to extract the varable $_GET['sel']
{ /if}
but cannot get the program to compile and if i can get it to compile i cannot access the varable.
any ideas pleaes
and am trying to access this varable in a if statment ie
{if $_GET['sel'] == 'lib'} ****** this syntax is not correct but what i need how to extract the passed varable to a pre compiled tpl page this the correct synatax to extract the varable $_GET['sel']
{ /if}
but cannot get the program to compile and if i can get it to compile i cannot access the varable.
any ideas pleaes
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Glad to help. Thanks for the points.
ASKER