title: Is it the good way to post variable with ajax processing
body: <p>I'm trying to <code>post</code> a pseudo with <code>ajax</code> like in the title , i think actually with my code i send no informations to my <code>php</code> file.</p>
  
  <p>so this is the code :</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$('#send').click(function(){
       var pseudo = $('#psd').val();
  });
  
  function recuppoint() {
      $.post('point.php',{pseudo: pseudo} ,function(data) {
           console.log('['+data + ']');
           $('.infos2').html(data);
      });
  }
  setInterval(recuppoint, 1000); 
  
     
      </code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;form method="post" id="logForm" action=""&gt;
      &lt;div class="field"&gt;
       &lt;label class="field-label" for="mailconnect"&gt;Votre mail&lt;/label&gt;
       &lt;input class="field-input"type="email" name="mailconnect" id="email" /&gt;  
      &lt;/div&gt; 
      &lt;div class="field" id="psd"&gt;
       &lt;label class="field-label" for="client"&gt;pseudo client&lt;/label&gt;
       &lt;input class="field-input" type="text" name="pseudo" id="pseudo" /&gt;
      &lt;/div&gt;   
      &lt;div class="field"&gt;
       &lt;label class="field-label" for="mdpconnect"&gt;mdp&lt;/label&gt;
       &lt;input class="field-input" type="password" name="mdpconnect" id="password" /&gt; 
      &lt;/div&gt; 
      &lt;button   id="send" class="send"name="formsubscribe"&gt;begin&lt;/button&gt;
  &lt;/form&gt;
          
  &lt;div&gt;
      &lt;div id="infos" class="infos" align="center"&gt; &lt;/div&gt;
      &lt;div id="infos2" class="infos2" align="center"&gt; &lt;/div&gt;  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>So guys how can i solve the problem with the var pseudo ? </p>
  
  <p>thank you</p>