title: jquery post request ajax with content type
body: <p>hello i have the code bellow:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
   14         $(document).ready(function() {
   15                 $('#find').click(function(){
   16                         
   17                         var amount = $('#amount').val();
   18 
   19                         $.ajax({
   20                                 type: "POST",
   21                                 contentType: "text/xml;charset=utf-8",
   22                                 url: "questions.php",
   23                                 data: {'amount': amount},
   24                                 success: function(data){
   25                                         
   26                                         $('#results').show();
   27                         
   28                                         
   29                                         $('#results').html(data);
   30                                 }
   31                         });
   32                 });
   33         });
   34     &lt;/script&gt;
  </code></pre>
  
  <p>and my php script has the code below</p>
  
  <pre><code>5 $search_term = $_POST['amount'];
  6 echo $search_term;
  </code></pre>
  
  <p>if i remove line 21 with content type thing i get the input as output but with that i get nothing as output! The thing is that i really need the content type thing so any info on that would be really helpful!</p>