On all of my CGI generated pages such as review.cgi and myliks.cgi I'd like display a random banner advertisement. I added a new key at the end of the %globals hash in site_html_templates.pl:
The random_banner sub program looks like this:
Banners.txt contains lines of html, each line is the code for one banner. Finally, in my templates, I tried to call the banner with a "banner" tag with percent signs (it doesn't post correctly in the fourm).
Although the banner doesn't display, I don't get an unknown tag error. I have tested this random_banner sub as I standalone CGI program and it works fine.
What am I doing wrong?
The random_banner sub program looks like this:
Banners.txt contains lines of html, each line is the code for one banner. Finally, in my templates, I tried to call the banner with a "banner" tag with percent signs (it doesn't post correctly in the fourm).
Although the banner doesn't display, I don't get an unknown tag error. I have tested this random_banner sub as I standalone CGI program and it works fine.
What am I doing wrong?