I have a file "index.cfm" with a treeview listing of files. I want to add a 
quick search input box.

Below is an example of the directory tree.

- d:\
- directory1
- directory2
           |
            -- subdirectory1
            -- subdirectory2
            -- subdirectory3
- directory3
- directory4
- directory5

What I want to accomplish is being able to input just a directory name. In 
this example, "subdirectory3" and click on "Go".


The directory paths I am grabbing with 
#cgi.script_name#?dir=#URLEncodedFormat(dir)#


I want to pass my input into the above string and refresh the page to the 
directory "subdirectory3"

Am I making any sense. My brain hurts.

Here is my code for the input box and a "Go!" button to submit the search



        <CFFORM ACTION="index.cfm?D:\reports\aclg" METHOD="POST" ENABLECAB="Yes" 
NAME="form2">
                <table width="168" cellpadding="0" cellspacing="0" border="0">
                <tr>
                <td>
                &nbsp;&nbsp;
                <INPUT TYPE="text" NAME="acronym" VALUE="" SIZE="10" MAXLENGTH="10" 
CLASS="dirlinks">&nbsp;
                </td>
                <td align="right">
                <INPUT TYPE="submit" NAME="test" VALUE="Go!" CLASS="dirlinks">
                </td>
                </tr>
                </table>
        </CFFORM>


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to