thanks jay but thats not really my problem. I dont have to worry about the url variables cause its just an include and the variables are getting passed in from the page itself. But as for the code the category is a word (ex Other) and it might not always be defined. So your code would word anytime it is defined but not when the $cat is undefined. you see what i mean?