pastebin - collaborative debugging

pastebin is a collaborative debugging tool allowing you to share and modify code snippets while chatting on IRC, IM or a message board.

This site is developed to XHTML and CSS2 W3C standards. If you see this paragraph, your browser does not support those standards and you need to upgrade. Visit WaSP for a variety of options.

PHP paste-bin - collaborative debugging tool View Help


Posted by jmut on Thu 12th Jul 23:51
download | new post

  1. <?php
  2. var_dump($_POST);
  3. ?>
  4.  
  5. <form name="iForm" method="POST" action="">
  6.          <input type="radio" name="is_company" value="no" onclick="javascript: document.getElementById('changeButton').click();">Private
  7.          <input type="radio" name="is_company" value="yes" onclick="javascript: document.getElementById('changeButton').click();">Company
  8.          <input type="image" name="changeButton" value="Change" id="changeButton" alt="changebutton">
  9. </form>
  10. <script language="javascript">
  11. document.getElementById('changeButton').style.display = 'none';
  12. </script>
  13.  
  14. FF output on clicking Private radio
  15. array ( 'is_company' => 'no', 'changeButton_x' => '', 'changeButton_y' => '', 'changeButton' => 'Change', )
  16.  
  17. IE output on clicking Private radio
  18. array ( 'is_company' => 'no', 'changeButton_x' => '0', 'changeButton_y' => '0', )
  19.  
  20.  
  21.  
  22. At first thought it is because of display=none that IE does not include button in post...but even if shown...it is not part of request either :(

Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Use syntax highlighting

To highlight particular lines, prefix each line with @@
:
:
Remember my settings