Consider passing your variables by using a session structure instead of on
the URL. i.e.:
<cfif an error in validating form variables>
<cfset session.invalidform = StructNew()>
<cfset session.invalidform = form>
<cflocation
url="#cgi.http_referer#?#cgi.query_string#&invalidform=1" addtoken="no">
</cfif>
On the form itself, just use something like this:
<input type="text" name="formfield"
value="<cfoutput>#iif(isDefined("url.invalidform"),de(session.invalidform.fo
rmfield),"")#</cfoutput>">
Or make something a bit more fun for yourself. ;-)
-----Original Message-----
From: Brian P. Doyle [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 25, 2000 9:58 AM
To: [EMAIL PROTECTED]
Subject: really long urls!!
In redesigning our site to comply with the fusebox architecture I'm finding
that I end up creating ridiculously long urls (one that has over 600
characters). Essentially these are used in error checking in forms. DSP
form file passes the variables via post to an ACT page. That page does all
of the error checking and passes all variables back to the preceding form to
have the user re-enter the mistaken form fields (all of the other variables
are then passed via hidden fields). It's in the pass from the action page
back to the dsp (via the index of course) that is creating the really long
urls: <cflocation url="index.cfm?fuseaction=blah&more&more&more..etc">
Does anyone know a way that I can hide the variables? I thought CFHTTP
might do it for me but it does not go to the page its submitting variables
to (like a form would).
Essentially I'd like to find a way to create a form that submits itself (all
of the fields would be hidden fields.)
thanks in advance
Brian P. Doyle
Web Developer
SMTnet.com
[EMAIL PROTECTED]
[EMAIL PROTECTED]
----------------------------------------------------------------------------
--
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/fusebox or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.