title: Can´t send post wirth javascript to another page
body: <p>I´m trying to send the variable idValue to a class called cambio_prenda.php with the following code</p>
  
  <pre><code> function reply_click(clicked_id)
    {
        var idValue = clicked_id;
        $.ajax({
              type: "POST",
              url: 'cambio_prenda.php',
              data:{"cambio" :idValue},
              success: function(response)
              {
                alert("exito");
              }
  
         });
    }
  </code></pre>
  
  <p>This code works when i use it in the same class, but when I try to call it from the another class with this code it doesn´t work</p>
  
  <pre><code>&lt;?php 
  if(isset($_POST['cambio'])){
  $item = $POST['cambio'];
  echo($item);
  }
  ?&gt;
  </code></pre>