title: Slim framework get the data from a form
body: <p>I try to make a simple form with SLIM framework.
  I don't know how to display the posted data. I want just to try to echo it.
  I heard that I need to use extra library RESPECT, I think SLIM can do such small thing.</p>
  
  <p>here is my code : </p>
  
  <pre><code>require '../../vendor/slim/slim/Slim/Slim.php';
  \Slim\Slim::registerAutoloader();
  $app = new \Slim\Slim();
  
  $app-&gt;get('/', function() use ($app){
      $app-&gt;render('form.php');
  });
  
  $app-&gt;post('/', function() use ($app){
      $req = $app-&gt;request();
      $errors = array();
      $params = array(
          'email' =&gt; array(
              'name'=&gt;'Email',
              'required'=&gt;true,
              'max_length'=&gt;64,
          ),
          'subject' =&gt; array(
              'name'=&gt;'Subject',
              'required'=&gt;true,
              'max_length'=&gt;256,
          ),
        );
          //submit_to_db($email, $subject, $message);
          $app-&gt;flash('message','Form submitted!');
  
      $app-&gt;redirect('./');
  });
  
  $app-&gt;run();
  </code></pre>