title: joomla module development with form - how to process
body: <p>I'm creating a simple Joomla 2.5 module that will have an html form.</p>
  
  <p><code>mod_mymodule/tmpl/default.php</code>:</p>
  
  <pre><code>&lt;form method="post" id="myemailform" action=""&gt;
      &lt;label for="ReferralName"&gt;Enter Name:&lt;/label&gt;&lt;input type="text" name="name" value="&lt;?php echo modCamcloudReferralHelper::getReferralName(); ?&gt;"&gt;
      &lt;label for="ReferralEmail"&gt;Enter Email Address:&lt;/label&gt;&lt;input type="text" name="email"&gt;
      &lt;label for="ReferralMessage"&gt;Enter Message (optional):&lt;/label&gt;&lt;textarea class="message"&gt;&lt;/textarea&gt;
      &lt;span class="countdown"&gt;&lt;/span&gt;
      &lt;button type="submit" value="Send Email"&gt;Send Email&lt;/button&gt;
      &lt;?php echo JHtml::_('form.token'); ?&gt;   
  &lt;/form&gt;
  </code></pre>
  
  <p>I have a helper class at:</p>
  
  <p><code>mod_mymodule/helper.php</code> - this just has some utility functions in it.</p>
  
  <p>My question is what is the usual convention here to process my form on the server side. I tried to find examples of what people have done but I can't seem to find anything. Do I just put everything in the helper class:</p>
  
  <pre><code>&lt;form method="post" id="myemailform" action="..\helper.php"&gt;
  </code></pre>
  
  <p>Or something like that? Thanks in advance.</p>