title: How to capture an URL parameter - Magento
body: <p>I have the following requirement: my URLs can be any of the following </p>
  
  <ul>
  <li><a href="http://localhost.com/index.php/?resid=anyvalue">http://localhost.com/index.php/?resid=anyvalue</a></li>
  <li><a href="http://localhost.com/index.php/storeviewname/?resid=anyvalue">http://localhost.com/index.php/storeviewname/?resid=anyvalue</a>, or ......?resid=anyvalue </li>
  </ul>
  
  <p>I want to capture the <code>resid</code> value and place it in the backend and save it along the order the customer makes.</p>
  
  <p>I.e., if <code>?resid=133</code> is requested and the customer later proceeds to make an order, I want the <code>resid</code> to be saved (133) along with the order id (say 100000123).</p>
  
  <p>And later I want the <code>resid</code> value to be shown in the sales order grid (in admin).</p>
  
  <p>Can somebody guide me in doing this?</p>