Working with XHTML 1.1
I have this login page managed in php. It contains several checkboxes, radiobuttons and a dropdownlist.
There's a lot of formchecking behind it and if something doesn't check out, the page reloads and all values are filled back into their place, except for passwords.
This means the <select>
, <input type="radio"
and <input type="checkbox"
elements that have been selected are re-selected.
Yet when I look at the source code, the checked="checked"
and selected="selected"
pieces are missing. But seeing as how the reloaded page has them selected, they must have been implemented.
Yet when I click my <input type="reset"
button, nothing happens. The don't get de-selected.
Fun thing is, when I select some other checkboxes, radiobuttons and change the select, the reset does work, but only on the newly clicked checkboxes and radiobuttons.
Even more weird is the fact that when I click reset, the radiobuttons, checkboxes and selects don't clear themselves, they jump back to the one that was checked or selected when PHP forced the page to reload.
What's going on here?
Using firefox by the way, checking IE now.
EDIT: IE same problem.