title: Update php variable and select option on page refresh
body: <p>I have a php variable </p>
  
  <p><code>$cur_selection='one';</code></p>
  
  <p>which I currently have getting a default value of 'one' as shown above.</p>
  
  <p>I have a drop down select called courses and a button which I would like by default to start off with the first Option.</p>
  
  <pre><code>&lt;select id='courses'&gt;
  &lt;option value='one'&gt;Select Option&lt;/option&gt;
  &lt;option value='two'&gt;two&lt;/option&gt;
  &lt;option value='three'&gt;three&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;button onclick="RefreshpageAndChangeVariableandSelector()"&gt;Click Me!&lt;/button&gt;
  </code></pre>
  
  <p>as you can see the list is populated with options that have values.</p>
  
  <p>Upon selecting an option other than the default option then clicking the button I wish to have to page refresh updating the value of $cur_selection to be the value of the chosen option while also changing the selection in the <code>courses</code> drop down menu to what was chosen before clicking.</p>
  
  <p>However I am clueless what to put into the <code>RefreshpageAndChangeVariableandSelector()</code> to do what I need it to do</p>
  
  <p>For this solution I am not looking to use AJAX but to refresh to page</p>