It was your code that made me realize that $forumid was in fact working in that php file ;-)
--------------- Added [DATE]1235944263[/DATE] at [TIME]1235944263[/TIME] ---------------
I've actually got another problem now. When i use the part of your code like if(forumid=5) then do this, it works fine. AFTER this part of the code, then i can get "echo $forumid" to display something. However, If i simply try to use "echo $forumdisplay" WITHOUT any other code (such as the if statement), it doesn't display anything or work. Any reason why this happens? It seems that if($forumid = 5) is assigning the value of 5 to $forumid, rather than giving me the actual forumid. Since if i view this on a page where forum id is actually 6, it still displays 5 because that is what $forumid was assigned. I guess i'm back to my starting problem of pulling the actual forum id. I was fooled earlier.