- Timestamp:
- 07/08/09 02:35:59 (3 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/vendor/trax/action_view/helpers/form_helper.php
r311 r316 367 367 * is set to 0 which is convenient for boolean values. Usually unchecked checkboxes don't post anything. 368 368 * We work around this problem by adding a hidden value with the same name as the checkbox. 369 # 369 * 370 370 * Example: Imagine that $post->validated is 1: 371 371 * check_box("post", "validated"); … … 373 373 * <input type="checkbox" id="post_validate" name="post[validated] value="1" checked="checked" /> 374 374 * <input name="post[validated]" type="hidden" value="0" /> 375 # 375 * 376 376 * Example: Imagine that $puppy->gooddog is no: 377 377 * check_box("puppy", "gooddog", array(), "yes", "no");
