I can't for the life of me work out how to include the site_poll.asp in another ASP page. Using <!--#include file="site_poll.asp"--> I get the following error:
I took out the <!--#include virtual="forum_folder/config.asp"--> from the other page and it seems to work fine. The other page still includes inc_func_secure.asp (therefore it's being included twice) but it doesn't seem to cause any problems so maybe i'll leave that there.
You can take out inc_func_secure.asp from the site_poll.asp page since you already have it included on your page. You can also move the includes out of the site_poll.asp file to where you have all your includes defined on your page.
Good idea. It's working a treat now but I think i'll do that anyway. Of course, it means that loading site_poll.asp directly from the browser won't work anymore, but that matters not!
I've put target=""_top"" on every other href in site_poll.asp which has cured the problem for those but I can't work out how to do it for the Vote Now and View Results buttons.