title: Adding more parameters in ajax
body: <p>I am using AJAX function. I am passing 3 variables to the next page using AJAX. When I add the 4th variable the function doesn't get called.</p>
  
  <pre><code>Code:
       &lt;script language="javascript" type="text/javascript"&gt;
              //Browser Support Code
              function ajaxFunction(){
                  var ajaxRequest;  // The variable that makes Ajax possible!
  
                  try{
                      // Opera 8.0+, Firefox, Safari
                      ajaxRequest = new XMLHttpRequest();
                  } catch (e){
                      // Internet Explorer Browsers
                      try{
                          ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
                      } catch (e) {
                          try{
                              ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
                          } catch (e){
                              // Something went wrong
                              alert("Your browser broke!");
                              return false;
                          }
                      }
                  }
                  // Create a function that will receive data sent from the server
                  ajaxRequest.onreadystatechange = function(){
                      if(ajaxRequest.readyState == 4){
  
                          var ajaxDisplay = document.getElementById('ajaxDiv');
                          ajaxDisplay.innerHTML = ajaxRequest.responseText;
                      }
                  }
  
  
               var count = document.getElementById('count').value;
               var type = document.getElementById('type').value;
               var sem = document.getElementById('sem').value;
                var rid = document.getElementById('room').value;
  
  
            ajaxRequest.open("GET", "add_requi_ajax.php?count=" + count+"&amp;type="+ type+"&amp;sem="+sem+"&amp;rid="+rid, true);
  
          ajaxRequest.send(null);
      };
  &lt;/script&gt;
  </code></pre>