title: ajax send and get back mktime
body: <p>Hello i m using an ajax function to get back the goog day from a script on my php file ... It' not working i don't understand why, 
  please help i need ajax dont want to reload each time a date is picked in my php calendar</p>
  
  <p>my HTML is</p>
  
  <pre><code>&lt;p class="texte choixDate"&gt;&lt;/p&gt;
  </code></pre>
  
  <p>so my jquery code is</p>
  
  <pre><code>$("#calendrier td a").click(function(){
  var jour=$(this).text();
  var mois="&lt;?php echo $mois2;?&gt;";
  var annee="&lt;?php echo $year;?&gt;";
  $.ajax({
  url : 'requete.php',
  type : 'GET',
  data : 'jour='+jour+'&amp;mois='+mois+'&amp;annee='+annee,
  dataType : 'text',
  success : function(text){ // code_html contient le HTML renvoyé
         $(".texte.choixDate").empty();
         $(".texte.choixDate").append("&lt;i class='fa fa-arrow-circle-down fa-2x'    aria-hidden='true'&gt;&lt;/i&gt;&lt;br/&gt;Vous avez choisi le " + text + " " + jour + " " + mois + " " + annee +"&lt;br/&gt;&lt;br/&gt;&lt;a class='btn' href='accueil.php?val2=1#agenda1' title='Valider'&gt;Valider&lt;/a&gt;");
          }
  
      });
  
   });     
  </code></pre>
  
  <p>and my php file is</p>
  
  <pre><code>$semaine = array("Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi","Dimanche"); 
  $mois=$_GET["mois"];
  $jour=$_GET["jour"];
  $annee=$_GET["annee"];
  
  $moisAtester2= mktime(0,0,0,$mois,$jour,$annee);
  
  $jourSem=$semaine[date("w",$moisAtester2)];
  echo $jourSem;
  </code></pre>
  
  <p>THANKS FOR HELP !!</p>