Agum
New Member
Hi,
I'm trying to write a banner rotator script in PHP, one that doesn't use SSI to call or include() in a php script or anything.
In other words, the way I want it to work is basically like WebAdverts back then (for perl), where you would include a static HTML on a regular HTML page like:
However, I now need a way to correspond the clicking of a certain banner correctly with the banner that was displayed.
I'm thinking about using cookies to achieve this. but I would still need to include some sort of page ID that is different for every page that displays the banner, would I? is there any way I can have one piece of static code on all pages? also, even if I use page IDs, if a user goes to a page, then open a new window and go to that page again and a new banner is displayed, clicking the banner on the first window would still redirect to the wrong link, wouldn't it?
What is a good solution to this problem?
Please don't suggest the use of SSI or include() because the situation doesn't allow for it.
Thanks!
I'm trying to write a banner rotator script in PHP, one that doesn't use SSI to call or include() in a php script or anything.
In other words, the way I want it to work is basically like WebAdverts back then (for perl), where you would include a static HTML on a regular HTML page like:
Code:
<a href="http://www.mysite.com/bannerlink.php?pageid=123&whateverelse"><img src="http://www.mysite.com/bannerdisplay.php?pageid=123&whateverelse"></a>
I'm thinking about using cookies to achieve this. but I would still need to include some sort of page ID that is different for every page that displays the banner, would I? is there any way I can have one piece of static code on all pages? also, even if I use page IDs, if a user goes to a page, then open a new window and go to that page again and a new banner is displayed, clicking the banner on the first window would still redirect to the wrong link, wouldn't it?
What is a good solution to this problem?
Please don't suggest the use of SSI or include() because the situation doesn't allow for it.
Thanks!