Hi All,
I'm new here but have been playing around with PHP for a bit. This should be an easy question for somebody.
www.mysite.com/varX
// do this stuff at the top of every page
if (isset($var1))
[INDENT]{
// do this stuff
}[/INDENT]
if (isset($var2))
[INDENT]{
// do this stuff
}[/INDENT]
<PROBLEM>
// do this stuff if varX isn't passed (i.e. address = www.mysite.com)
// I plan to put a welcome to the site paragraph here.
// But, I don't want it to show if a varX is set.
</PROBLEM>
// do this stuff at the bottom of every page
= = = = = = = = = = = = = = =
I've looked into is_null and is_empty, but couldn't get it to work. On a previous version of PHP I used this: if (is_null).
Any suggestions or points in the right direction?