How to Get Add to cart button url in Magento

From the following code you can get direct link to add cart button

<input type="button" title="<?php echo $this->__('Add to Cart') ?>" onclick="setLocation('<?php echo Mage::getUrl('checkout/cart/add', array('product'=>$row['product_id'],'qty'=>1)) ?>')" />
DOWNLOAD SOLUTION HERE