title: Ajax Response is giving data success error
body: <p>I am new to Ajax and want toperform some database interaction using AJAX in JQUERY by linking to PHP script.       </p>
  
  <pre><code>        $(function() {  
            $.ajax({
  
                  type: "POST",
  
                  url: "response.php",
                  data: {name:"amol"},
                  success: function (data) {
                  if (data.Success) {
                      alert('Success! We have data.Success!');
                   } else {
                      alert('Error! We do not have data.Success!');
                  }
              },
              error: function(jqXHR, textStatus) {
                  alert('Error: ' + textStatus);
              }          
               });
  
          });
  </code></pre>
  
  <p>My response.php file does not contain much. The code in it is:</p>
  
  <pre><code>        &lt;?php
           echo "Hello";
           ?&gt;
  </code></pre>
  
  <p>I want to use this code for database interaction. But when I run this much of code , I get output as 'Error!we dono have data.Success!</p>
  
  <p>Also, I want to know ,How to output variables from the php script on succesful response?</p>
  
  <p>Thanks in advance for help !!</p>