160
Basic search operations
To search the collection:
1.
Create a new file in Stuio.
2.
Modify the file so that it appears as follows:
<HTML>
<HEAD>
</HEAD>
<BODY>
<H2>Search</H2>
<FORM METHOD="Post" ACTION="collectionsearchaction.cfm">
P>
</FORM>
</BODY>
</HTML>
3.
Save the file as
To present the results of the search to the user:
1.
Create a new file in Stuio.
2.
Modify the file so that it appears as follows:
<HTML>
<HEAD>
</HEAD>
<TITLE>Select the collection to search</TITLE>
<P>Enter the collection you want to search:
<INPUT TYPE="text" NAME="collection" SIZE="25" MAXLENGTH="35"></
<P>Select the type of search:<BR>
<INPUT TYPE=radio
NAME=type
VALUE=Simple checked> Simple<BR>
<INPUT TYPE=radio
NAME=type
VALUE=Explicit> Explicit<BR>
<P>Enter a search string:</P>
<INPUT TYPE=text
NAME=searchstring SIZE=50>
<P><INPUT TYPE=submit
NAME=search1
VALUE="Search">
<INPUT TYPE=reset
VALUE="Reset">
collectionsearchform.cfm
<TITLE>Search output template</TITLE>
Developing Web Applications with ColdFusion
.
Need help?
Do you have a question about the COLDFUSION 4.5-DEVELOPING WEB and is the answer not in the manual?