title: Server not returning a response
body: <p>I have an ajax call that inserts into my database, the call goes out and the database is updated but I do not get any response back from the server. 
  I have confirm it using firebug as there is a post tab but no response tab as usual. </p>
  
  <p>I have posted my code below, any help would be amazing. </p>
  
  <pre><code>function addCourse()
      {
  
      var memid = document.forms["addCoursesForm"]["Member"].value;
      var CourseName = document.forms["addCoursesForm"]["CourseNames"].value;
      var CourseDate = document.forms["addCoursesForm"]["Cdate"].value;
      var CourseExpiry = document.forms["addCoursesForm"]["Edate"].value;
  
      if(window.XMLHttpRequest)
          {
          xmlhttp=new XMLHttpRequest();
          }
      else
          {
          xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
          }
      xmlhttp.onreadystatechange=function()
          {
          if (xmlhttp.readystate==4 &amp;&amp; xmlhttp.status==200)
              {
              document.getElementById("ConfirmCourse").innerHTML=xmlhttp.responseText;
              }
          }
      xmlhttp.open("POST", "addCourseDB.php");
      xmlhttp.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
      xmlhttp.send("memid="+ memid+ "&amp;CourseName="+ CourseName+ "&amp;CourseDate=" + CourseDate+"&amp;CourseExpiry="+ CourseExpiry);
  </code></pre>