title: Passing Form data to Controller
body: <p>So in my Javascript I am using form serialize the output is correct</p>
  
  <blockquote>
    <p>(issubmit=1&amp;username=tester&amp;password=test&amp;cpassword=test&amp;firstname=sdfds&amp;lastname=fsdfdsf&amp;gender=&amp;email=pie%40aol.com&amp;phone=&amp;address=&amp;phone=&amp;address=)</p>
  </blockquote>
  
  <p>When I try to pass it to my controller, I get nothing, <code>result = ""</code>. What am I doing wrong?</p>
  
  <p><strong>Jquery:</strong></p>
  
  <pre><code>var dataString = $("form").serialize();
      $.ajax({
          url: '&lt;?php echo base_url();?&gt;index.php/welcome/submit_form/',
          async: false,
          type: 'POST',
          data: dataString,
          dataType: 'html',
          success: function(data) {
          $('#ajax-content-container').html(data);
      }
  });
  </code></pre>
  
  <p><strong>Controller:</strong> </p>
  
  <pre><code>function submit_form() {
      $data = $this-&gt;input-&gt;post('dataString');
      echo "&lt;p&gt;result= ".$data."&lt;/p&gt;";
  }
  </code></pre>