title: Pass multiple variables to PHP file
body: <p>Hi i am currently having trouble to figure out how can i pass a second variable via url to a php file.</p>
  <p>Bellow is the code</p>
  <pre><code>function getmodel()
  {
      var mod = [];
      jQuery('.cells:checked').each(function()
      {
          mod.push($(this).val());   
       });
      model=mod.toString();
      var date = document.getElementById(&quot;date&quot;).value; // this is the variable that i would like to pass next to the model
      urlt='&lt;?php echo base_url();?&gt;excel/export.php?models='+model;
      window.location.replace(urlt);
  }
  </code></pre>
  <p>So i have managed to pass the model, but  i would like to add the date variable to. The date is defined by the user.</p>
  <p>Any ideas or guidance what i should look into,</p>
  <p>Thanks in advance.</p>