title: onchange reload page with value of select
body: <p>I have a table displaying results, I want to give people the ability to update the results of a cell/field individually without needing a whole update form</p>
  
  <p>Here is what I have:</p>
  
  <pre><code>echo "&lt;select name='tv_taken' id='tv_taken' onchange='window.location=\"samepage.php?update=tv_taken&amp;update_id=$tv_id\" '&gt;";
  </code></pre>
  
  <p>As you can probably tell its a select box with a list of users. Now the only problem is i need to pass the new selected value in the url string, so i want the new value of the select.</p>
  
  <p>So lets say it was mary and someone chooses a new user John I want something like this</p>
  
  <pre><code>echo "&lt;select name='tv_taken' id='tv_taken' onchange='window.location=\"samepage.php?update=tv_taken&amp;update_id=$tv_id&amp;user_name=$find_username\" '&gt;";
  </code></pre>
  
  <p>What I'm not sure on is there a way to pass the changed value via php or will I need a javascript solution?</p>
  
  <p>Ill then use an </p>
  
  <pre><code>IF if(isset($_GET['tv_id'])) 
  {
  Do the update
  }
  </code></pre>
  
  <p>This is not a public site so I'm guessing there is a more secure way to do this but this should probably suffice since it will only be team members using it who would be required to login before they can see this page.</p>