Newbie Question - what's wrong with this line of code?
Posted: Fri Aug 14, 2009 10:11 am
Forgive me, I'm a newbie at PHP.
It's not working. I'm trying to check for the existing of the add variable in the URL. I get no output on the page at all, nor any of the HTML that I have in the php module after this.
TIA,
Dave
Code: Select all
<?php if($_GET("add")) { echo "block"; } else { echo "none"; } ?>TIA,
Dave