title: How can I save form input to a database, I'm having trouble sending the values to my controller
body: <p>Here's my RegisterController:</p>
  
  <pre><code>public function saveforminformationAction(){
          $request = $this-&gt;getRequest();
  
          if($request-&gt;isPost()){
              //I NEED HELP WITH THE getFormValues() METHOD.
              $formResults = $this-&gt;getFormValues();
              $db = $this-&gt;_getParam('db');
  
              $data = array(
              'user'      =&gt; $formResults['username'],
              'email'     =&gt; $formResults['email'],
              'password'  =&gt; $formResults['password'],
              'passwordc' =&gt; $formResults['passwordc'],
              'name'      =&gt; $formResults['name'],
              'avatar'    =&gt; $formResults['avatar'],
              );
  
  
              $db-&gt;insert('Usuario',$data);           
          }
      }
  </code></pre>
  
  <p>And here's my registration view:</p>
  
  <pre><code>&lt;body&gt;  
          &lt;h1&gt;Thanks for signing up!&lt;/h1&gt; 
          &lt;?php
          $this-&gt;form-&gt;setAction($this-&gt;url(array('controller' =&gt; 'registration','action'=&gt;'saveforminformation'))); 
          $this-&gt;form-&gt;setMethod('post');
          echo $this-&gt;form;
          ?&gt;
  
  
          &lt;img alt="signupimg" src="/img/signup.png"&gt;
      &lt;/body&gt;
  </code></pre>
  
  <p>I'm fairly new to Zend, but I'm eager to learn.</p>
  
  <p>How can I get the values sent in the form?</p>