Home » HTML » HTML_AJAX » Bug #6988
Radio Buttons incorrectly passed with IE
Details
| Submitted | 2006-03-02 01:45 UTC |
|---|---|
| From | chris at designer-web dot com |
| Assigned | jeichorn |
| Status | Closed |
| Package | HTML_AJAX |
| PHP Version | 5.1.2 |
| OS | Windows |
| Roadmaps | (Not assigned) |
Comments
[2006-03-02 01:45 UTC] chris at designer-web dot com
Description:
------------
Using IE 6 (with all the latest security packages), radio buttons are not be passed at all when submitting a form using the formSubmit method. All other variables in the form are submitted. This affects only IE that I can tell so far. Using firefox, they are passed, but if they are checked, the value is "checked" and not the value of the radio button. When it is unchecked in firefox, the correct value is sent.
Test script:
---------------
<?php if(isset($_POST['test1'])) {print_r($_POST); exit();}?>
<HTML><HEAD>
<script type="text/javascript" src="HTML_AJAX-HelloWorld/server.php?client=all"></script>
<script>
function formvalidation(thisform)
{
return !HTML_AJAX.formSubmit(thisform, 'target');
}
</script>
</head>
<body>
<pre id="target">
</pre>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" name="form1" method="POST" onsubmit="return formvalidation(this)">
<input type="text" name="test1" ><br><input type="radio" name="shareAddresses" value="1">
Addresses are available to all users on the account.<br>
<input type="radio" name="shareAddresses" value="0" checked>
Addresses are available soley to the user who created them.
<input type="submit" name="edit" value="Save Changes">
</form></body></html>
Expected result:
----------------
I would expect it to show at the top all of my post variables including the radio value.
Actual result:
--------------
It shows everything but the radio values.
[2006-03-02 02:27 UTC] jeichorn at php dot net
I belive this is fixed in 0.3.5, you can test by downloading a new Main.js (if your using the non combined version) or a new HTML_AJAX.js.
http://svn.bluga.net/HTML_AJAX/trunk/js/
[2006-04-07 23:16 UTC] jeichorn at php dot net
Fixed in 0.4.0