title: Ajax PHP : cant go to new php page
body: <p>The goal for my script is showing list of results from page1.php to page-listes.php</p>
  
  <p>I incluse all method to my ajax call the sucess method was fired but page list not displayed</p>
  
  <p>The ajax call code is :</p>
  
  <pre><code>$.ajax({ 
  type: "POST", 
   url: "page-listes.php", 
   data: "name="+name+"&amp;type="+type+"&amp;region="+region+"&amp;aliment="+aliment+"&amp;periode="+periode,
  dataType: 'html'
  }) .done(function() {
      alert( "success" );
      })
      fail(function() {
      alert( "error" );
  })
  .always(function() {
      alert( "complete" );
  });
  </code></pre>
  
  <p>And the php result file is :</p>
  
  <pre><code>    &lt;?php
          try {
              $bdd = new PDO('mysql:charset=utf8;host=localhost;dbname=reps-bd', 'tchiko', 'tchiko');
          } catch (Exception $e) {
              die('Erreur : ' . $e-&gt;getMessage());
          }
  
          if (isset($_POST['name'])) {
          $name = $_POST['name'];
          $type = $_POST['type'];
          $region = $_POST['region'];
          $aliment = $_POST['aliment'];
          $periode = $_POST['periode'];
  
          // recuperer la liste 
          $repListe = $bdd-&gt;query('SELECT re.libelle libeller, t.libelle libellet, r.nom nom, r.nb_personne nb, r.image image, r.date date        
      FROM course r 
      INNER JOIN region re ON r.id_region=re.id_pays   
      INNER JOIN type t ON t.id_type=t.id_type
      WHERE r.nom LIKE "%'.$name.'%"')
          or die(print_r($bdd-&gt;errorInfo()));
  
      ?&gt;
  // some html code
  &lt;?php 
                  while ($cours= $repListe-&gt;fetch()){
                  $fch_image = 'images/temp/'.$cours['image'].'.jpg';    
              ?&gt;
  
              &lt;div class="offer_list clearfix"&gt;
  
                  &lt;div class="offer_item clearfix"&gt;
                      &lt;div class="offer_image"&gt;&lt;a href="offers-details.html"&gt;&lt;img src="&lt;?php echo $fch_image;?&gt;" alt=""&gt;&lt;/a&gt;&lt;/div&gt;
                      &lt;div class="offer_aside"&gt;
                          &lt;h2&gt;&lt;a href="offers-details.html"&gt;&lt;?php echo strtoupper($cours['nom']);?&gt;&lt;/a&gt;&lt;/h2&gt;
                          &lt;div class="offer_descr"&gt;
                              &lt;p&gt;...............&lt;/p&gt;
                          &lt;/div&gt;
                          &lt;div class="offer_data"&gt;
                              &lt;div class="offer_price"&gt;&lt;?php echo $cours['diff'];?&gt;&lt;/div&gt;
                              &lt;span class="offer_miliage"&gt;&lt;?php echo $cours['libellet'];?&gt;&lt;/span&gt;
                              &lt;span class="offer_regist"&gt;&lt;?php echo $cours['date'];?&gt;&lt;/span&gt;                            
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
  
  
              &lt;/div&gt;
  &lt;?php
  }
  $repListe-&gt;closeCursor();
  }
  ?&gt;
  // some html code   
  </code></pre>
  
  <p>I think the php file was correct,but nothing happen when i call it</p>