# Check\_box and form

**URL:** <https://rubytalk.org/t/check-box-and-form/25917>\
**Category:** ruby-talk\
**Created:** [20 March 2006 06:18 UTC](https://rubytalk.org/t/check-box-and-form/25917 "2006-03-20T06:18:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![misiek](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@misiek](https://rubytalk.org/u/misiek)\
**Post date:** [20 March 2006 06:18 UTC](https://rubytalk.org/t/check-box-and-form/25917/1 "2006-03-20T06:18:51Z")

</div>

I need use check\_box to search function.

sample..

I got like 10 items and each item has over 10 subitems ( or whatever )  
Need to check some items use check\_boxes and display all subitems belongs to checked items.

\<%= start\_form\_tag :action =\> 'find\_ckecked'%\>  
&nbsp;&nbsp;\<table width = "100%" \>  
&nbsp;&nbsp;\<% @uitems.each do |item| %\>  
&nbsp;&nbsp;&nbsp;&nbsp;\<tr bgcolor = "lightgray"\>   
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<td\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<%= check\_box("item", "name" ) %\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\<%= [item.name](http://item.name) %\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\</td\>  
&nbsp;&nbsp;&nbsp;&nbsp;\</tr\>  
&nbsp;&nbsp;\<%= submit\_tag "search" %\>  
\<%= end\_form\_tag %\>

I have no ideas how to do that please if some body did that before could give some clues ?!
