title: check textarea not working php
body: <p>-I just want for post user</p>
  
  <p>-I have two tables (users, post) ,
   i don't know make system post 
  // code html form and textarea </p>
  
  <pre><code>               &lt;form method="POST" autocomplete="off" action=""&gt;  
              &lt;textarea name="none" class="textarea" placeholder="Quelle est votre question ?"&gt;&lt;/textarea&gt;
  
                  &lt;select&gt;
                      &lt;option value="filiére" selected="1"&gt;Filiére : Accueil&lt;/option&gt;
                      &lt;option value="smp"&gt;smpc&lt;/option&gt;
                      &lt;option value="smp"&gt;smia&lt;/option&gt;
                      &lt;option value="smp"&gt;svt&lt;/option&gt;
                      &lt;option value="smp"&gt;smp&lt;/option&gt;
                      &lt;option value="smp"&gt;smc&lt;/option&gt;
                      &lt;option value="smp"&gt;sma&lt;/option&gt;
                      &lt;option value="smp"&gt;smi&lt;/option&gt;
                      &lt;option value="smp"&gt;svi&lt;/option&gt;
  
                  &lt;/select&gt;
  
                  &lt;select&gt;
                      &lt;option value="accueil" selected="1"&gt;Semestre : Accueil&lt;/option&gt;
                      &lt;option value="s1"&gt;s1&lt;/option&gt;
                      &lt;option value="s2"&gt;s2&lt;/option&gt;
                      &lt;option value="s3"&gt;s3&lt;/option&gt;
                      &lt;option value="s4"&gt;s4&lt;/option&gt;
                      &lt;option value="s5"&gt;s5&lt;/option&gt;
                      &lt;option value="s6"&gt;s6&lt;/option&gt;                                              
                  &lt;/select&gt;   
  
      &lt;button class="btn-ajouter" type="submit" name="ajouter" value="ajouter"&gt;ajouter&lt;/button&gt;                           
      &lt;/form&gt; 
   //code php 
     $userId = $_SESSION['user_id']; 
     if(isset($_POST['ajouter']))
       {
        $post = $_POST['none'];
  
       $stmt=$connect-&gt;prepare('INSERT INTO 
                  publications(id_auteur,date_post,post) VALUES(?,NOW(),?) ');
       $stmt-&gt;execute(array(
  
       ':id_auteur' =&gt; $userId,
       ':post'      =&gt; $post
  
              ));
           }
  </code></pre>
  
  <p>code ... Fatal error PDO :  Uncaught PDOException: SQLSTATE[HY093]: Invalid parameter number: parameter was not defined</p>