Show
Ignore:
Timestamp:
07/08/09 02:35:59 (3 years ago)
Author:
john
Message:

bug fixes / updates

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/trax/vendor/trax/action_view/helpers/form_helper.php

    r311 r316  
    367367 * is set to 0 which is convenient for boolean values. Usually unchecked checkboxes don't post anything. 
    368368 * We work around this problem by adding a hidden value with the same name as the checkbox. 
    369 # 
     369 * 
    370370 * Example: Imagine that $post->validated is 1: 
    371371 *   check_box("post", "validated"); 
     
    373373 *   <input type="checkbox" id="post_validate" name="post[validated] value="1" checked="checked" /> 
    374374 *   <input name="post[validated]" type="hidden" value="0" /> 
    375 # 
     375 * 
    376376 * Example: Imagine that $puppy->gooddog is no: 
    377377 *   check_box("puppy", "gooddog", array(), "yes", "no");