title: PHP AJAX POST send multiple variables
body: <p>with an ajax post to php can i send multiple variables, and if so whats the syntax?</p>
  
  <pre><code>loadXMLDoc("scripts/product_transfer.php?group="+group+"subgroup="+subgroup+"user="+user+,function()
  </code></pre>
  
  <p>something like that??</p>
  
  <p>here is the function code:</p>
  
  <pre><code>//---------------------------------------------------------------------------------------------------    -----------------------------------------------------------------------
  //Function to handle ajax
  function loadXMLDoc(url,cfunc)
  {
  if (window.XMLHttpRequest)
    {// code for IE7+, Firefox, Chrome, Opera, Safari
    xmlhttp=new XMLHttpRequest();
    }
  else
    {// code for IE6, IE5
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  xmlhttp.onreadystatechange=cfunc;
  xmlhttp.open("POST",url,true);
  xmlhttp.send();
  }
  </code></pre>