title: onclick window.location.href with variable
body: <p>I have a select with some options inside and I want the user to be sent to another page with a variable in the URI so that I can extract it.</p>
  
  <p>This is how my select is set up:</p>
  
  <pre><code>&lt;select name="period" onclick="window.location.href = 'test.php?Period=' + this.selectedIndex;"&gt;
  </code></pre>
  
  <p>I should then be able to use $_GET['Period'] to get the value.</p>
  
  <p>However, the user is never sent to test.php.</p>
  
  <p>Why is this?</p>