View Single Post
  #1  
Old 11-22-2007, 06:53 PM
 
luxor luxor is offline
 

Senior Member
  
Join Date: Apr 2007
Posts: 120
 

Default php in static page question

I have the following placed in a static page:

Code:
{php} if($pr=="2") echo"2"; else echo "3"; {/php}

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?
__________________
v4.1.8 GOLD
Reply With Quote