I am trying to pass a variable from one php page to the next in an URL

Here is my example:

```
 <a href="<?php echo $MYURLPREFIX; ?>/gifts.html?category=novelty">Shop Now</a>

```

I then want to execute the appropriate array depending on what was passed in the query string.
So on my gifts.php I have:

```
if($SITE==SITE_MYSITE)
{
echo "<img src=\"images/gifts.png\" alt=\"Gifts Banner\">";
require_once("classfile.php");

if($SITE==SITE_MYSITE)
{
    $giftsArray=array(
        new gift('','10045'),
        new gift('','10048'),
        new gift('','10079'),
        new gift('','10103'),
        new gift('','10143'),
        new gift('','1024'),
        new gift('','10389'),
        new gift('','10452'),
        new gift('','10457'),
        new gift('','10515'),
        new gift('','10538'),
        new gift('','10540'),
        new gift('','10574'),
        new gift('','10616'),
        new gift('','10639')
    );
 }
}

```

I want to execute the above block if "novelty" was sent via the query string but I am not sure what the safest way to deal with the request.

What I have been trying to do, and which doesn't work is:

```
  if ($SITE==SITE_MYSITE) && (isset($category['novelty'])

```

Hope someone can help. Cheers