Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

for mutiple fields

$
0
0

How can search for mutiple fields (criterias)? my code below returns nothing?

 

 

Form.cfm:

<form action="search.cfm" method="post">

Name:<input type="text" name="name" />

Desc:<input type="text" name="desc" />

<input type="submit" name="submit" value="Search" />

</form>

 

search.cfm

<cfset searchTerm = "#form.name#,#form.desc#">

 

<cfsearch name="searchResults" collection="mycollection" criteria="#searchTerm#">


  <cfdump var="#searchResults#">

 

thanks


Viewing all articles
Browse latest Browse all 5794

Trending Articles



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