Changes between Initial Version and Version 1 of Ticket #8761, comment 6


Ignore:
Timestamp:
Jan 27, 2014, 10:14:04 PM (6 years ago)
Author:
phazeii
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8761, comment 6

    initial v1  
    1 I believe Yii framework does it as well.  I've seen it in quite a number of places myself.  Just came across this bug and would be good to see it fixed.
    2 
    3 It's more often seen with checkboxes ala:
    4 
    5 {{{
    6 <input type="hidden" name="mybox" value="0">
    7 <input type="checkbox" name="mybox" value="1">
    8 }}}
    9 
    10 So the value is submitted if the box is unchecked.
    11 Also seen as popular solution here : http://stackoverflow.com/questions/1809494/post-the-checkboxes-that-are-unchecked
    12 
    13 And it does actually seem to work just fine with a hidden if it's with checkboxes:
    14 http://jsfiddle.net/ZtZu8/40/
    15 
    16 
    17 So should it not have the same functionality with radio's as well?
    18 
     1Sorry about the double submit, it said there was a captcha error the first time.