![]() |
php in static page question
I have the following placed in a static page:
Code:
{php} if($pr=="2") echo"2"; else echo "3"; now when i reference page , 2 is showing always. When I type in my browser page.html?pr=3 the 2 still shows, so the url variable insertion of 3 is not effecting the variable $pr at all. Is there a way to make this work? |
Re: php in static page question
Why are you doing it in php instead of doing:
{if $smarty.get.pr eq "2} show 2 {else} show 3 {/if} ? |
All times are GMT -8. The time now is 10:45 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.