title: change modal content with results from php file
body: <p>I'm trying to dynamically change a modal's content with the result of a query using PHP. </p>
  
  <p>So far, I've managed to reach the ajax call, but I'm not getting a success nor error message</p>
  
  <p><strong>PHP: get_user.php</strong></p>
  
  <pre><code>&lt;?php 
  include ("session-connection.php");
  session_start();
  
  $result = $_POST['param'];
  echo $result;
  ?&gt;
  </code></pre>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function view_progress(row){
          console.log("id: " + row);
          var param = row;
          $.ajax({
              data: param,
              url: 'get_user.php',
              type: 'post',
              beforeSend: function(){
                  $("#progressModal").modal('show');
                  $("#alert_name").html("...");
              },
              error: function (){
                  $("#alert_name").html("Error");
              },
              success: function(resultado){
                  $("#alert_name").html(resultado);
              }
          }); 
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>If the code is successfull it should change the label alert_name with the id the javascript function recieves.</p>