I am sure this is an easy one but not for me.
I have an index page that the first time visited has no url variables (coldfusion term) but after selecting a nav link it has them ie.
first time http://www.mydomain.com
second http://www.mydomain.com?content=calendar
I am trying to determine if content is set or not using the following code
Code: Select all
if (isset($HTTP_GET_VARSїcontent]))
{
$contentpage = $HTTP_GET_VARSїcontent].".php";
if ($contentpage == "sub.php")
{
$contentpage = "subscriptions.htm";
}
}
else
{
$contentpage = "start.php";
}Notice: Use of undefined constant content
How do I determine if the content variable exists or not?
Thanks
John