title: Form submit is not sending any POST data
body: <p>On my web page, when I press the "Add Customer" link, the following happens:</p>
  
  <ul>
  <li>the onclick handler is called, which
  <ul>
  <li>sets values into the forms two text fields</li>
  <li>displays an alert (at this point you can see the new values in the text fields on the screen)</li>
  <li>calls the form's submit button (Note: the form submits back to it's own PHP file)</li>
  </ul></li>
  <li>The same php file is called, but there are no POST values received
  <ul>
  <li>I've verified this with
  <ul>
  <li>the code in the first line that counts the values in $_POST then displays later</li>
  <li>using fiddler to look at the request sent to the page</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>I've done this type of thing numerous times before with no problems. I've copied this code to two different web servers (linux, apache) with the same result. It's probably a minor problem but I can't find it.</p>
  
  <p>I've stripped out a whole bunch of code to get down to this little bit, but haven't figured out why no POST values are being sent.</p>
  
  <p>You can see a working copy of this at <a href="http://www.daleann.org/dla.php" rel="nofollow">http://www.daleann.org/dla.php</a>. The only thing need besides the code below is /js/jquery.min.js.</p>
  
  <p>Thanks for your help.</p>
  
  <pre><code>&lt;?php
  $pc=count($_POST)."&lt;br /&gt;".date("H:i:s");
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src="/js/jquery.min.js" /&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  $(document).ready(function() {
    alert("inside docReady");
    $(document).on('click', "a.menuBillingOwner", function() {
      $("#selectedBillingOwner").val("11");
      $("#lastCustomNavSelected").val("selectedBillingOwner");
      alert("selectedBillingOwner = "+document.forms['formBillingOwner'].elements['selectedBillingOwner'].value);
      document.forms['formBillingOwner'].submit();
    });
  });
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;ul id="menuBillingOwner"&gt;
      &lt;li&gt;&lt;a href='#' id='menuBillingOwnerAdd' class='menuBillingOwner'&gt;Add Customer&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
    &lt;?php
    $lastCustomNavSelected = $selectedBillingOwner = "";
    if (count($_POST) &gt; 0 &amp;&amp; isset($_POST['selectedBillingOwner'])) {
       $lastCustomNavSelected = "selectedBillingOwner";
       $selectedBillingOwner = $_POST['selectedBillingOwner'];
    }
    ?&gt;
    &lt;?php echo "pc = ".$pc."&lt;br /&gt;\n"; ?&gt;
    &lt;form name="formBillingOwner" id="formBillingOwner" method="POST" action="/dla.php"&gt;
      &lt;input type="text" id="lastCustomNavSelected" value="&lt;?php echo      $lastCustomNavSelected; ?&gt;" /&gt;
      &lt;input type="text" id="selectedBillingOwner" value="&lt;?php echo $selectedBillingOwner; ?&gt;" /&gt;
    &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>