title: hidden INPUT value not available in $_POST
body: <p>I have a form that I use <code>JavaScript</code> to set the value of a <code>hidden INPUT field</code> which is the text of the <code>OPTION selected</code>.  The <code>$_POST</code> captures the value of the <code>OPTION</code> but not the value of the <code>hidden INPUT</code>. The <code>hidden INPUT</code> is being used to pass the <code>OPTION</code> text so it is available in the <code>$_POST</code> <code>array</code>.</p>
  
  <p>This is the section of JavaScript used to get the value and text of the selected OPTION</p>
  
  <pre><code>    var sele = document.getElementById('building_type');
      var seleVal = sele.options[sele.selectedIndex].value;
      var seleTxt = sele.options[sele.selectedIndex].text;
  </code></pre>
  
  <p>This is where I set the value of the INPUT field with an ID of "other_hidden_text" in the same JavaScript.</p>
  
  <pre><code>    document.getElementById("other_hidden_text").value = seleTxt;
  </code></pre>
  
  <p>My problem is <code>$_POST['other_hidden_text']</code> is empty. Any ideas why?</p>