Creating Amazon Search Boxes

Discussion in 'Amazon' started by widewebtalk, Nov 28, 2008.

  1. #1
    Hi there,

    I am in the middle of creating my own amazon store but i cannot figure out how to create custom search boxes i have the fields for search i want to use but not sure what URL to call.

    Can anybody help me out with this point me to any page or any other help you can provide.

    Thank you.
     
    widewebtalk, Nov 28, 2008 IP
  2. markowe

    markowe Well-Known Member

    Messages:
    1,136
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    165
    #2
    Hi, I'm assuming you want people to type stuff in and get sent straight to Amazon? If you want the products to appear on your OWN page, that's another kettle of fish altogether! But here's a quick model for making an Amazon search box - a simple HTML form like this suffices:

    <form class="Searchform" method="get" action="http://www.amazon.com/gp/search">
    <input class = "SearchText" type="hidden" name="tag" value="[YOUR ASSOCIATES ID]"/><br />
    <input class = "SearchText" type="hidden" name="index" value ="All" /><br />
    <input class = "SearchText" type="text" name="keywords" /><br />
    <input class = "SearchSubmit" type="submit" value="Go find it!" />
    </form>
    Code (markup):
    Dunno how much html you know - if not, I can briefly explain the fields. But anyway, make sure your associates ID is in there, as the default value for the "tag" field, and you can also specify "index" as whatever index (product category) you want to search in, or of course make a nice drop-down list to choose that from...

    Hope that helps (I tested it, and it works, but use at your own risk! Make sure clicks are being registered before you base your entire business on it!).
     
    markowe, Dec 1, 2008 IP