title: Possible to populate a php/mysql call with a value selected within form on same page?
body: <p>I have a form which has two inputs. The first input allows a user to select two values (either 1 or 2). My second input allows the user to select a range of available dates (which is populated from a separate php/mysql query). </p>
  
  <p>I would like to achieve the following:</p>
  
  <ol>
  <li><p>At page load, the second box is simply 'non-clickable'. The user must make a selection in part 1.</p></li>
  <li><p>Once a user makes a selection in box 1, the values of part 2 are dynamically created accordingly as the value selected from part 1 (either 1 or 2) is used in a php pdo prepared statement into a mysql database.</p></li>
  </ol>
  
  <p>is this possible?</p>