Hi,
I'm a little stumped.
I'm using CFDIRECTORY to list dir/files with hyperlinks on all.
If I click on a directory I get the following in the URL:
http://127.0.0.1/index.cfm?dir=d%3A%5Cbooks\
I also have an <INPUT box where I can type in for example "b161" and click
on the submit button which then looks into the database
for a match then passes the directory path to a <CFPARAM which works great.
My problem is I want to pass all this info to the browser URL but all I get
is http://127.0.0.1/redirect.cfm.
What I really want is http://127.0.0.1/redirect.cfm?dir=d%3A%5Cbooks\ so if
the user hits the refresh I won't get a browser error..."This page cannot
be sent without resending the information. Click retry to send the
information again....etc"
Is there a way to pass this information to the index.cfm file rather than
redirecting to another file?
<CFFORM ACTION="redirect.cfm" METHOD="GET" ENABLECAB="Yes" name="form3">
<TABLE WIDTH="168" CELLPADDING="0" CELLSPACING="0" BORDER="0">
<TR>
<TD>
<CFINPUT TYPE="text" NAME="redirect" VALUE="" SIZE="10" MAXLENGTH="30"
CLASS="dirlinks">
</TD>
<TD ALIGN="right">
<INPUT TYPE="submit" VALUE="Go!" CLASS="dirlinks">
<CFQUERY NAME="redirect" DATASOURCE="cygwinprofile">
SELECT *
FROM profile
WHERE alias = '#redirect#'
</CFQUERY>
</TD>
</TR>
</TABLE>
</CFFORM>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists