title: Jquery Simple Ajax POST Request Not Working
body: <p>I have made a test jquery-ajax post script, i am going to implement it in my rating and comment system, but this script is not working.</p>
  
  <p>I have done only simple post request like this.</p>
  
  <p><strong>test.php</strong></p>
  
  <pre><code>&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt; 
  &lt;script type="text/javascript"&gt;
  $.ajax({ 
    type: "POST",
    url: 'test.php',                        
    data: {
          value1:'value1', 
          value2:'value2', 
          value3:'value3', 
          value4:'value4', 
          value5:'value5', 
          value6:'value6', 
          value7:'value7', 
          value8:'value8'
        },                        
    cache: false,              
    success: function(value)          
     {
         alert(value)
     }
  });
  &lt;/script&gt;
  
  &lt;?php 
  $value1 =  $_POST['value1'];
  $value2 =  $_POST['value2'];
  $value3 =  $_POST['value3'];
  $value4 =  $_POST['value4'];
  $value5 =  $_POST['value5'];
  $value6 =  $_POST['value6'];
  $value7 =  $_POST['value7'];
  $value8 =  $_POST['value8'];
  
  $value = array($value1,$value2,$value3,$value4,$value5,$value6,$value7,$value8);
  echo json_encode($value);
  
  ?&gt;
  </code></pre>
  
  <p>Please see and suggest the ways to make it work.</p>
  
  <p>Thanks. </p>