To get a Magento URL parameter, use the following code:
// URL: http://localhost/project/index.php/admin/sales_order/index/id/123
$id = Mage::app()->getRequest()->getParam('id');
Getting URL parameters
You want or need help implementing this solution? Maybe you did not find what you were looking for? Contact me and I will assist you with whatever Magento problem troubles you!