Link to home
Start Free TrialLog in
Avatar of sydneyguy
sydneyguyFlag for Australia

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
ASKER CERTIFIED SOLUTION
Avatar of Sudaraka Wijesinghe
Sudaraka Wijesinghe
Flag of Sri Lanka image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sydneyguy

ASKER

bingo perfect thanks for the imput exactly what i was looking for
Glad to help. Thanks for the points.