title: follow up field php/html form
body: <p>I am trying to create a follow up field for a select drop down menu.</p>
  
  <p>for example, in the first drop down menu, i have ('yes' => 1, 'no' => 2, 'nothing' => 3).
  I want the field that comes afterward to change after i hit select one of the options.
  for example: if i choose yes, the field following would be a select drop down menu, for no it would be a text area and for nothing it would be nothing.</p>
  
  <p>I have tried some codes for myself and it didn't work because i don't know how to update the following field right after i choose something. i tried something like this:</p>
  
  <pre><code>if (select == 1) {
      echo "$select2";
  } else if (select == 2) {
      echo "&lt;input type='text' name='textarea1'/&gt;";
  }​
  </code></pre>
  
  <p>but i dont know how to make the page update the field...</p>
  
  <p>please help me</p>
  
  <p>Thanks</p>