title: How can I select a piece of code to run from a <select> html tag PHP
body: <p>I have a select drop down: </p>
  
  <pre><code>    &lt;form action="member.php" method="POST" enctype="multipart/form-data"&gt;
  &lt;table width="80%"&gt;
      &lt;tr&gt;
          &lt;td class="borderblack"&gt;Select Phone Type:
              &lt;select name="phone_type"&gt;
                      &lt;option value="escene" name="escene"&gt;Escene&lt;/option&gt;
                      &lt;option value="grandstream" name="grandstream"&gt;Grandstream&lt;/option&gt;
              &lt;/select&gt;
  
              &lt;input type="submit" name="phone_typesub"&gt;
          &lt;/td&gt;
  
  
          &lt;td class="borderblack"&gt;
              &lt;label for="file"&gt;Upload XML:&lt;/label&gt;
              &lt;input type="file" name="file" id="file"&gt;
              &lt;input type="submit" name="submit" &gt;
          &lt;/td&gt;   
  &lt;/form&gt;
  </code></pre>
  
  <p>Depending on the dropdown option selected i want to run a specific block of code Thats contained in a different file.  I was wondering if anyone could advise me. (There are 2 blocks of code in the php file )</p>