Carl Miller schreef:

> The other website would call the perl script in an <img> tag, like so:
>
> <img src="http://www.my_site.com/cgi-bin/random_banner.cgi";
> width="468" height="60">
>
> I've tried several perl scripts that basically work, but the problem
> is always the same with all of them: the browser always caches
> 'random_banner.cgi' causing the same banner to be displayed on every
> subsequent page.

Also try a src-value ending in a "?".

  <img src="http://www.my_site.com/cgi-bin/random_banner.cgi?";
  width="468" height="60">

and if you generate the HTML each time, you can even put a time() value
after it:

  <img src="http://www.my_site.com/cgi-bin/random_banner.cgi?t=14325";
  width="468" height="60">

-- 
Affijn, Ruud

"Gewoon is een tijger."


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to