title: Invoke a controller's function using a form button on PHP/CodeIgniter
body: <p>I'm trying to do a small proyect in PHP using CodeIgniter and NetBeans. I have this HTML view:</p>
  
  <pre><code>&lt;div class="section section_with_padding" id="users"&gt; 
          &lt;h1&gt;Users Access&lt;/h1&gt; 
          &lt;div class="half left"&gt;
              &lt;h4&gt;Log In&lt;/h4&gt;
              &lt;p&gt;Log In here.&lt;/p&gt;
              &lt;div id="login"&gt;
                  &lt;form method="post" name="contact" action="Test/any"&gt;
                      &lt;div class="left"&gt;
                          &lt;label for="fullname"&gt;User Name:&lt;/label&gt; 
                          &lt;input name="fullname" type="text" class="required input_field" id="fullname" maxlength="30" /&gt;
                      &lt;/div&gt;
                      &lt;div class="right"&gt;                           
                          &lt;label for="email"&gt;Email:&lt;/label&gt; 
                          &lt;input name="email" type="text" class="validate-email required input_field" id="email" maxlength="30" /&gt;
                      &lt;/div&gt;
                      &lt;div class="clear"&gt;&lt;/div&gt;
                      &lt;label for="message"&gt;Message:&lt;/label&gt; 
                      &lt;textarea id="message" name="message" rows="0" cols="0" class="required"&gt;&lt;/textarea&gt;
                      &lt;input type="submit" class="submit_btn float_l" name="submit" id="submit" value="Login" /&gt;
                  &lt;/form&gt;
              &lt;/div&gt;
          &lt;/div&gt;
  
          &lt;div class="half right"&gt;
              &lt;h4&gt;Mailing Address&lt;/h4&gt;
              &lt;h6&gt;&lt;strong&gt;Company Name&lt;/strong&gt;&lt;/h6&gt;
              680-780 Aliquam semper dignissim,&lt;br /&gt;
              Fusce cursus turpis lacus, 16780&lt;br /&gt;
              Sit amet tortor
  
              &lt;div class="clear h20"&gt;&lt;/div&gt;
              &lt;div class="img_nom img_border"&gt;&lt;span&gt;&lt;/span&gt;
              &lt;iframe width="360" height="240" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;amp;source=s_q&amp;amp;hl=en&amp;amp;geocode=&amp;amp;q=Central+Park,+New+York,+NY,+USA&amp;amp;aq=1&amp;amp;sll=35.101934,-95.712891&amp;amp;sspn=61.425057,135.263672&amp;amp;vpsrc=6&amp;amp;ie=UTF8&amp;amp;hq=&amp;amp;hnear=Central+Park,+New+York&amp;amp;ll=40.771133,-73.974187&amp;amp;spn=0.057126,0.132093&amp;amp;t=m&amp;amp;z=14&amp;amp;output=embed"&gt;&lt;/iframe&gt;&lt;/div&gt;
          &lt;/div&gt;
  
          &lt;a href="#home" class="home_btn"&gt;home&lt;/a&gt; 
          &lt;a href="#galeria" class="page_nav_btn previous"&gt;Prev&lt;/a&gt;
          &lt;a href="#admin" class="page_nav_btn next"&gt;Next&lt;/a&gt;
      &lt;/div&gt; 
  </code></pre>
  
  <p>Don't mind the half right div, that code isn't finnished yet. My questions is this: I want to call a function inside a controller (controller Test.php, function any()). I google it and found that I could use the attribute 'action' so</p>
  
  <pre><code>action="my_controller/my_function"
  </code></pre>
  
  <p>But when I try that on my code, I get a nice</p>
  
  <p>"Not Found</p>
  
  <p>The requested URL /Project/Test/any was not found on this server."</p>
  
  <p>test.php is inside Project\application\controllers</p>
  
  <p>What I'm doing wrong???</p>