Online radio - 'Buy Now' - need search w/out hardcoding link - search possible?

Discussion in 'Amazon' started by radio, Nov 6, 2007.

  1. #1
    Have an online radio station and I want to offer listeners to buy the album or mp3 of what's playing. The software I have gives me xml data that I can parse into artist / album / song / etc. With this information I'd like to offer a 'Buy Now' link that takes the user to Amazon w/ my affiliate link, but I don't want to code in each possible artist. I trust the search to get a user close enough to where they should be in order to buy the album. So can I send a visitor to amazon with my affiliate link and a search term parsed in (using php). I've been looking but I can't find this.

    Thanks!
     
    radio, Nov 6, 2007 IP
  2. radio

    radio Peon

    Messages:
    50
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Okay, I think I figured it out.

    http://www.amazon.com/gp/search?index=music&keywords=<?php=$artist?>+<?php=$album?>&_encoding=UTF8&tag=<?php=$affid?>

    pass the artist and album and you could hardcode the affid

    syntax is wrong... working on it.
     
    radio, Nov 10, 2007 IP