B-219 Sec-55 Noida, India

$_GET, $_POST & $_REQUEST Variables

// $_GET
$productId = Mage::app()->getRequest()->getParam('product_id');
// The second parameter to getParam allows you to
// set a default value 
//which is returned if the GET value isn't set
$productId =Mage::app()->getRequest()->getParam('product_id',44);
$postData = Mage::app()->getRequest()->getPost();
// You can access individual variables like...
$productId = $postData['product_id']);
(Visited 75 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.