title: Javascript Help Passing Data via URL
body: <p>Hi I wonder if someone could help me with this small issue I have the following code which I need to modify.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function code(id) {
    $('#myStyle').load('myphp.php?id=' + id);
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>I need to pass another variable into this code and add it to the GET part of the URL for example above it will include the URL myphp.php?id=124545</p>
  
  <p>I want to add a second variable called num to the URL part but am confused what the code will need to become to make the correct post via GET</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function code(id,num) {
    $('#myStyle').load('myphp.php?id=' + id); // how do I add the &amp;num=124 for example
  } 
  &lt;/script&gt;
  </code></pre>
  
  <p>Thanks in advance </p>