I still can't get one part of my code to pass the input variable. When the 
user types in for example "aosl", it looks in the database and returns the 
destination (directory path on server) based on the alias match. In this 
example the "destination" from the database would be "D:\books\aosl".

This is then passed to a <CFLOCATION which displays that directory 
(directory code missing)

I can't get the alias or destination passed to the page itself. There is 
something I'm not understanding...




<cfform action="#cgi.script_name#" method="GET" name="form">

<cfinput type="text" name="redirect" value="" size="16" maxlength="30" 
class="dirlinks">&nbsp;
<input type="hidden" name="jumpdefined" value="">
<input type="submit" value="Jump" class="dirlinks">

</cfform>


<cfif isdefined("jumpdefined")>
        <cfquery name="qRedirect" datasource="cygwinprofile">
                SELECT      *
                FROM        profile
                WHERE alias = '#redirect#'
        </cfquery>
        <cfif qredirect.recordcount>
                <cflocation 
url="test3.cfm?dir=#URLEncodedFormat(qRedirect.destination)#%5C">
        </cfif>
</cfif>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to