title: How to use drop down menu to change PHP object variable?
body: <p>The title may not be the best way to word this question, so please let me know if I can improve it.</p>
  
  <p>What I am trying to do is use a drop down menu to change the value of a PHP object.</p>
  
  <p>In the example below, I want $selected to be assigned as the "value" of the the menu option selected.</p>
  
  <pre><code>  $selected = $_GET['program_select'];
  </code></pre>
  
  <p>Here is the drop down menu:</p>
  
  <pre><code>  &lt;select id="programs_select" name="programs_select"&gt;
      &lt;option&gt;Select a Different Month&lt;/option&gt;  
      &lt;?
       foreach($pagedata-&gt;programs as $programs){
      ?&gt;
      &lt;option value="&lt;?=$programs-&gt;id?&gt;"&gt;&lt;?=$programs-&gt;title?&gt;&lt;/option&gt; 
      &lt;?    
      }
      ?&gt;
    &lt;/select&gt;
  </code></pre>
  
  <p>How can I send this value to the server and reload the page using the selected value?</p>
  
  <p>For example, if the 2nd option is selected and it's id is 2 the result would be:</p>
  
  <pre><code>$selected = 2;
  </code></pre>
  
  <p>FYI, this is being used to dynamically generate the output data for a thumbnail menu.  The "program" being displayed would be determined by the value in the option selected.</p>