I wanna make a banner exchange script with php where ppl place a piece of code (called the Prowler Exchange Code) on their site which displays all the reciprocal links.

Example is here. Please read it. This is what I wanna code.

The trouble is, I now have to use javascript in my script i need to code as webmasters linking to php for their Prowler Exchange Code using iframes is very silly.

So how can I do what Google AdWords and Adgridwork and Txtswap do. How the code has some variables in it and then it retrieves the data from a database.

How can I use javascript to give each sites it's identification.

I'll be grateful for your answer.