I have something like in my custom module:
$fieldset->addField('orderinfo', 'link', array( 'label' => Mage::helper('web')->__('Order Info'), 'style' => "", 'href' => Mage::helper('adminhtml')->getUrl('adminhtml/sales_order/view', array('order_id' => $order_id)), 'value' => 'Magento Blog', 'after_element_html' => '', ));
And as you can see from the code, I am trying to link that field to the Order Tab in the back-end. I'm having trouble getting the ID though. I'm planning to just save the Order ID in the database and then using the addField I could have the correct URL.
But how can I save an addField value to a variable? I want to store the value in "$order_id". Is it possible?