Menu
I have a PHP web page on which there is a section of code that I would like to make conditional on the passing of a certain variable to the page.
So in other words, if the page is pulled up like this:
[url]http://mysite.com/mypage.php?var=show
Then I would like the page to execute the block of code in question.
However, if the URL is typed like this:
[url]http://mysite.com/mypage.php
I would like for this block of code to NOT be executed. So it could be commented out or whatever works.
What would be the best way to accomplish this? Thanks in advance for any input anyone has!
J