B-219 Sec-55 Noida, India
+918010221733

$_GET, $_POST & $_REQUEST Variables

<?php
// $_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 76 times, 1 visits today)

Leave a reply

You must be logged in to post a comment.