O'Reilly Hacks
oreilly.comO'Reilly NetworkSafari BookshelfConferences Sign In/My Account | View Cart   
Book List Learning Lab PDFs O'Reilly Gear Newsletters Press Room Jobs  


 
Buy the book!
Amazon Hacks
By Paul Bausch
August 2003
More Info

HACK
#39
Add Product Advice Remotely
Allow your site's visitors to add product buying advice directly to Amazon
The Code
[Discuss (0) | Link to this hack]

The Code

This code takes the key elements from the product advice form at Amazon. Each advice form links to a specific item, and you'll need to include the ASIN for that product where indicated.

<html>
<body>
<form action="http://amazon.com/exec/obidos/flex-sign-in/ref=cm_custrec_f_advice/" method=post>

<!-- Visible Form Fields -->
<b>I recommend:</b> <input type=text name="related-asin" size=10><br><br>
<input type=radio name="rating-type" value="customer-accessories" checked>
in addition to this product<br>
<input type=radio name="rating-type" value="customer-recommends">instead of 
this product<br><br>

<!-- Hidden Form Fields -->
<input type=hidden name="method" value="GET">
<input type=hidden name="opt" value="n">
<input type=hidden name="cont-page" value="cm/custrec-signed-in-continue">
<input type=hidden name="cont-type" value="cust-rec">
<input type=hidden name="response" value="rate-item">
<input type=hidden name="page" &return;
       value="community/recommend-sign-in-secure.html">
<input type=hidden name="secure-rate-item-next-page"&return;
       value="tg/stores/detail/-/books/insert ASIN/advice">
<input type=hidden name="rate-item-next-page"&return;
       value="tg/stores/detail/-/books/insert ASIN/advice">
<input type=hidden name="rated-item-id" value="insert ASIN">
<input type=hidden name="rated-item-value" value="+">
<input type=hidden name="creator-customer-id" value="insert Amazon ID">
<input type=hidden name="require-valid-asin" value="true">

<input type="submit" value="add advice">
</form>
</body>
</html>


O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website: | Customer Service: | Book issues:

All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.