List of free web storage providers. Save up to 50 GB online.

Add a search utility to your site (.asp)

We have improved this script from the original one

The new features of this vesion:
 

  • Multiple search terms may be used
  • Files and folder to be search can be defined independentely. It is possible to search only for files, only within folder, or both (files and folders).
  • The script will be generated especifically for you after filling the form bellow.
  • The form neccesary to perform the search may be included in any page in your site as far as it is directed to the script. In case no search is request to the script the form will be display.
  • No personal data or email is request. Our unique request is to keep the link to our site in the script.
  • The resulting page will show the title of files including the serach term of terms.
  • See notes in the bottom

  •  

    Fill the form to get your personalized script


     
    List of files to search Example
    /index.asp
    /data.html
    /myfriend/index.asp
    /myfriend/city.htm
    /cgi-bin/getdata/asp
     

     
    List of folders to search Example*
    /
    /myfriend
    /mydata
     
    *for main folder write "/" in first line. Write "/myfriend" for subfolders, not "/myfriend/".
     
     
    List of files not to be searched within selected folders Example
    /index2.asp
    /search.asp*
    //myfriend/index2.html
    /mydata/red.gif
     
    *In case the script is in one of the folders selected, include the script in the list.

    The path to your main folder ("c:/mydir/myweb")*

    *Optional. It is not necessary in most servers. Write "c:/mydir/myweb", not "c:/mydir/myweb".
     



    NOTES:

    In order to be friendly with your server, do not include a huge amount of files or folders to search. It will take a lot of time to perform the search, and your server provider will not be happy with you.

    It is very helpfull to start using this script with just a couple of files to be search in the first textarea above. It will allow you to know whether you have problems when using the script.

    In case you have within a folder different types of files (as for example ".htm", ".asp", ".gif", ".pdf"...), the script will open all of them and will search for search terms within the file even in case the file is not a text file (P.e. it will search in images files). The best way to avoid this is to select folders containing only text files or to include in the form the files to be searched, but not the folders. We may also include the files not to be searched in the corresponding textarea.

    Including files but not folders will allow a faster search (less calculations are necessary) and the search will be performed in an specific order (the one you have determinated in the list of files).

    The form bellow may be included in any page within your site (action must point to search.asp script).

    The file name of the script must be "search.asp" (a form will be display in case there is no no search request).

    <CENTER>

    <form method="POST" action="search.asp"> 
     <table border=0 cellpadding=5 bgcolor=AAAAAA><tr> 
     <td align=center> 
     Search term or phrase &nbsp; <input type=text name=term size=15> &nbsp; <input type=submit
     value="search"></td> 
     </tr></table> 
     </form>
     
    </CENTER>


     

    Tutorial home page

    2006@ AspTutorial.info. All rights reserved.