title: Get product id and product type in magento?
body: <p>I am creating magento store. I am beginner in magento.  I want to get product id and product input type in my phtml file is this possible? please guide me..</p>
  
  <p>I am trying to this way to get product type. but its not working for me</p>
  
  <pre><code>$product=Mage::getModel('catalog/product')-&gt;load($product_id);
  $productType=$product-&gt;getTypeID(); 
  </code></pre>
  
  <p>Please guide me...</p>