title: How to create a custom form action to a controller in admin html from Magento?
body: <p>I have created a form in admin html, but its action not working properly, the action not coming to the controller. My config.xml file shown below</p>
  
  <pre><code>&lt;adminhtml&gt;
          &lt;menu&gt;
              &lt;customercare module="customercare"&gt;
                  &lt;title&gt;Calls&lt;/title&gt;
                  &lt;sort_order&gt;100&lt;/sort_order&gt;
                  &lt;children&gt;
                      &lt;customercare module="customercare"&gt;
                          &lt;title&gt;View Missed Calls&lt;/title&gt;
                          &lt;sort_order&gt;0&lt;/sort_order&gt;
                          &lt;action&gt;admin_customercare/adminhtml_missedcall&lt;/action&gt;
                      &lt;/customercare&gt;
                      &lt;customercarecalllog module="customercare"&gt;
                          &lt;title&gt;View Call Logs&lt;/title&gt;
                          &lt;sort_order&gt;1&lt;/sort_order&gt;
                          &lt;action&gt;admin_customercare/adminhtml_calllog&lt;/action&gt;
                      &lt;/customercarecalllog&gt;                    
                  &lt;/children&gt;
              &lt;/customercare&gt;
              &lt;customer&gt;
                      &lt;children&gt;
                              &lt;customercarevirtualretialerrequest module="customercare"&gt;
                                      &lt;title&gt;Manage Virtaul Retailers&lt;/title&gt;
                                      &lt;sort_order&gt;10&lt;/sort_order&gt;
                                      &lt;action&gt;admin_customercare/adminhtml_virtualretialerrequest&lt;/action&gt;
                              &lt;/customercarevirtualretialerrequest&gt;
                      &lt;/children&gt;
              &lt;/customer&gt;
  
          &lt;/menu&gt;
          &lt;acl&gt;
              &lt;resources&gt;
                  &lt;all&gt;
                      &lt;title&gt;Allow Everything&lt;/title&gt;
                  &lt;/all&gt;
                  &lt;admin&gt;
                      &lt;children&gt;
                          &lt;customercare translate="title" module="customercare"&gt;
                              &lt;title&gt;Calls&lt;/title&gt;
                              &lt;sort_order&gt;1000&lt;/sort_order&gt;
                              &lt;children&gt;
                                  &lt;customercare translate="title"&gt;
                                      &lt;title&gt;View Missed Calls&lt;/title&gt;
                                  &lt;/customercare&gt;
                                  &lt;customercare translate="title"&gt;
                                      &lt;title&gt;Manage Missed Calls&lt;/title&gt;
                                      &lt;sort_order&gt;0&lt;/sort_order&gt;
                                  &lt;/customercare&gt;
                                  &lt;customercarecalllog translate="title"&gt;
                                      &lt;title&gt;View Call Logs&lt;/title&gt;
                                      &lt;sort_order&gt;1&lt;/sort_order&gt;
                                  &lt;/customercarecalllog&gt;
  
                              &lt;/children&gt;
                          &lt;/customercare&gt;                        
                      &lt;/children&gt;
                      &lt;customer&gt;                                        
                              &lt;children&gt;                            
                                  &lt;virtualretialerrequest translate="title" module="customer"&gt;
                                      &lt;title&gt;Manage Virtual Retailers&lt;/title&gt;
                                      &lt;sort_order&gt;10&lt;/sort_order&gt;
                                  &lt;/virtualretialerrequest&gt;                            
                              &lt;/children&gt;                                        
                      &lt;/customer&gt;
  
                  &lt;/admin&gt;
              &lt;/resources&gt;
          &lt;/acl&gt;
  </code></pre>
  
  <p>My Controller file </p>
  
  <pre><code>&lt;?php
  class Suyati_Customercare_Adminhtml_VirtualretialerrequestController extends Mage_Adminhtml_Controller_Action 
  {
      protected function _isAllowed()
      {
          return true;
      }
  
      public function indexAction()
      {
  
          $this-&gt;loadLayout(); 
          $block = $this-&gt;getLayout()-&gt;createBlock(
              "Mage_Core_Block_Template",
              "virtual-registration",
              array('template' =&gt; 'customercare/virtual_retailer_registration_admin_form.phtml')
          );
          $this-&gt;_addContent($block);
          $this-&gt;renderLayout();
  
      }
  
      public function postAction()
      {
          echo "hello"; die();
      }
  }
  </code></pre>
  
  <p>Phtml Form action file located in this path app/design/adminhtml/default/default/template/customercare/virtual_retailer_registration_admin_form.phtml </p>
  
  <pre><code>&lt;form action="&lt;?php echo Mage::helper("adminhtml")-&gt;getUrl("customercare/virtualretialerrequest/post"); ?&gt;" id="retailerForm" method="post"&gt;
      &lt;input type="hidden" name="form_key" value="&lt;? echo $this-&gt;getFormKey(); ?&gt;" /&gt;
  </code></pre>
  
  <p>When i try to submit my form it is going to dashboard not coming to the controller action file. please help me on this. I just need to get the post data in the controller file and need to send an email to the admin.</p>