title: How to show the values from a PHP array in a textfield, based on a dropdown menu
body: <p>any help would be great. Here's what I have so far:</p>
  
  <p>PHP:</p>
  
  <pre><code>&lt;?php
  
  $arr1 = array("1080", "939", "769", "696","572", "498", "408", "369");
  
  $arr2 = array("1275", "1095", "890", "799", "676", "580", "472", "423");
  
  ?&gt;
  </code></pre>
  
  <p>PullDown Menu:</p>
  
  <pre><code>&lt;select name="age" id="age"&gt;
  &lt;option value="&lt;?php echo $arr1[0]; ?&gt;"&gt;18-24&lt;/option&gt;
  &lt;option value="&lt;?php echo $arr2[0]; ?&gt;"&gt;25-29&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Textfield:</p>
  
  <pre><code>&lt;input name="planA" type="text" id="planA" value="&lt;?php echo $arr1[0]; ?&gt;" size="10" /&gt;
  </code></pre>
  
  <p>I need the textfield to show the correct value from the array, based on what I choose from the pulldown menu.</p>
  
  <p>Thx.</p>