Quantcast
Channel: Adobe Community : Popular Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 14291

how to make this search and make list sort

$
0
0

<form name="myform" action="" method="post">

 

<input type="checkbox" name="check_list" value="1">ASP<br>
<input type="checkbox" name="check_list" value="2">PHP<br>
<input type="checkbox" name="check_list" value="3">JavaScript<br>
<input type="checkbox" name="check_list" value="4">HTML<br>
<input type="checkbox" name="check_list" value="5">MySQL<br>
<input type="checkbox" name="check_list" value="5">MyStats<br>
<input type="checkbox" name="check_list" value="5">My function<br>
<input type="checkbox" name="check_list" value="5">coldfusion<br>
<input type="checkbox" name="check_list" value="5">mainframes<br>
<input type="checkbox" name="check_list" value="5">microstrategy<br>
<input type="checkbox" name="check_list" value="5">sql server 2000<br>
<input type="checkbox" name="check_list" value="5">sqlserver 2005<br>

<input type="checkbox" name="check_list" value="5">MySQL4.0<br>

 

<input type="text" name="search" />
<input type="button" name="search" value="Search"/>
</form>

 

 

Hi Above is the code that has the checkbox list that will come from database ann i need to add search box to search for particular label for EX:sqlserver.

 

when user enters that text to search the above list has to be sorted so that the sqlserver options will come on top of the list.

 

 

below is code from database

<cfoutput query="qryAvailableCourses" >

<input type="checkbox" name="course_id" id="#course_id#" value="#course_id#" #checked#/>
                        <label for="#course_id#">
                              <span style="padding-left:5px;"> </span>
                                  #course_desc# (#course_id#)
                        </label>

</cfoutput>

 

 

 

will you please help me how to solve this issue .

 

Thanks.


Viewing all articles
Browse latest Browse all 14291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>