The search engine consists of an HTM file and an ASP file. It mainly uses the FILESYSTEMOBJECT component to achieve its purpose. It has powerful functions and can be used directly after modifying the interface. Of course, it is even better to add a little of your own things.
searchpage.htm
This HTM file is used to pass in the condition
<HTML>
<HEAD>
<TITLE>ASP Search Engine Example</TITLE>
</HEAD>
<BODY>
<CENTER>
<FORM METHOD=POST ACTION=search.asp>
<TABLE BGCOLOR=#CC6633 BORDER=0>
<TR>
<TD ROWSPAN=3 BGCOLOR=#CC6633 width=21 nowrap> </TD>
<TD width=363 nowrap> <FONT COLOR=#FFFFF>
<INPUT TYPE=text NAME=SearchText SIZE=22>
<INPUT TYPE=checkbox NAME=Case>
Highly sensitive</FONT> </TD>
<TD ROWSPAN=3 width=10>
<INPUT TYPE=submit VALUE=OK>
<P>
<INPUT TYPE=reset VALUE=Clear>
</TD>
<TD ROWSPAN=3 BGCOLOR=#CC6633 width=28> </TD>
</TR>
<TR>
<TD width=363 nowrap> <FONT COLOR=#FFFFF> Return result
<SELECT name=rLength >
<option value=200 selected>Long message</option>
<option value=100>Short message</option>
<option value=0>Return only to the connection</option>
</SELECT>
<SELECT NAME=rResults>
<OPTION VALUE=10 SELECTED>10
<OPTION VALUE=25>25
<OPTION VALUE=50>50
</SELECT>
</FONT>
</TD>
</TR>
<TR>
<TD width=363 nowrap> <FONT COLOR=#FFFFF> Must include:
<INPUT TYPE=checkbox NAME=iImage>
picture
<INPUT TYPE=checkbox NAME=iZips>
Zip format
<INPUT TYPE=checkbox NAME=iJavaS> JavaScript
</FONT>
</TD>
</TR>
</TABLE>
</FORM>
</CENTER>
<DL>
<DD> </DD>
</DL>
</BODY>
</HTML>
------------------------------------------------------------------------
ASP program that displays results
search.asp
<HTML>
<HEAD>
Search results for <TITLE>'<%=Request(SearchText)%>'</TITLE>
</HEAD>
<BODY>
Search results for <B>'<%=Request(SearchText)%>'</B><BR>
<%
Const fsoForReading = 1
Dim objFile, objFolder, objSubFolder, objTextStream
Dim bolCase, bolFileFound, bolTagFound
Dim strCount, strDeTag, strExt, strFile, strContent, strRoot, strTag, strText, strTitle, strTitleL