as i m trying to add product into the cart which i have done successfully but next time after run my project in visual studio that earlier product already there in the cart.but i want when new user visit the website and add the product into the cart that cart should be an empty. here is the code for to add value in the cart can any body plz tell me how i can pen:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" />
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="abhimanyu.vij@gmail.com" />
<input type="hidden" name="item_name" value="pen" />
<input type="hidden" name="amount" value="1.00" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="shopping_url" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="return" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="cancel_return" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="bn" value="PP-ShopCartBF:x-click-but22.gif:NonHosted" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" name="submit"
alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1" />
</form>
pencil
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="2" />
<input type="hidden" name="business" value="abhimanyu.vij@gmail.com" />
<input type="hidden" name="item_name" value="Pencil" />
<input type="hidden" name="amount" value="2.00" />
<input type="hidden" name="shipping" value="1.00" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="shopping_url" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="return" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="cancel_return" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="bn" value="PP-ShopCartBF:x-click-but22.gif:NonHosted" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" name="submit"
alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1" />
</form>
Car
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="3" />
<input type="hidden" name="business" value="abhimanyu.vij@gmail.com" />
<input type="hidden" name="item_name" value="Car" />
<input type="hidden" name="amount" value="10.00" />
<input type="hidden" name="shipping" value="1.00" />
<input type="hidden" name="currency_code" value="EUR" />
<input type="hidden" name="shopping_url" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="return" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="cancel_return" value="http://localhost:50075/HTMLPage1.htm" />
<input type="hidden" name="bn" value="PP-ShopCartBF:x-click-but22.gif:NonHosted" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-but22.gif" name="submit"
alt="Make payments with PayPal - it's fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1"
height="1" />
</form>
View Cart:
<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="paypal">
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="display" value="1" />
<input type="hidden" name="business" value="abhimanyu.vij@gmail.com" />
<input type="hidden" name="shopping_url" value="http://localhost:50075/HTMLPage1.htm" />
<input type="image" src="https://www.paypal.com/en_US/i/btn/view_cart_02.gif" name="submit"
alt="Make payments with PayPal - it's fast, free and secure!" />
</form>