Hi dalecosp,
Thanks for the info although what you suggest doesn't really relate to the problem I'm having. I need to know how to get the pageid from the url or whatever. If the user goes to /index.php with no vars passed, where do I look for the pageid var? You have $_GET['pageid'], but I dunno where I'm getting pageid from. I am filling the $result via the dbase which has the pageid but getting it from there makes no sense. Well, I could bable for ever and it will probably just confuse things even more. Thanks for your help. 🙂
Drixer