Page 1 of 1

Best way to implement a multiuser random ad-system?

Posted: Thu Apr 20, 2006 4:00 am
by kawsper
I want to implement a random advertisement system. Where a user could place an html code on their page and get random banners after they have chosen some target groups in the database. I have some problems implementing the system to my users’ sites.

I have troubles makes the link fit to the image in this way:

Code: Select all

<a href=”adRedirect.php?someBanner=4321”><img src=adShow.php?userID=1></a>
I need a breakthrough, I know this can be done in JavaScript but I don’t want to be bound to if the users’ visitor has enabled JavaScript or not.

Can anyone tell me the best way to make this system work the right way?

Re: Best way to implement a multiuser random ad-system?

Posted: Thu Apr 20, 2006 4:09 am
by Christopher
It seems like all you need is this:

Code: Select all

<a href=”adRedirect.php?userID=1”><img src=adShow.php?userID=1></a>
The adShow.php script would set a Cookie or Session var with the Banner ID, and the adRedirect.php would read the Cookie or Session var to get the Banner ID.

Posted: Thu Apr 20, 2006 8:42 am
by patrikG
moved to PHP Code