Well, I figured this one out. Created a hidden form with hidden fields. On
the page there's a link which submits the hidden form back to the search
template.
<!--- Deserialize form field into a CF struct --->
<cfwddx action="WDDX2CFML" input="#form.formvars#" output="x">
<!--- Create a hidden form from the data in the struct --->
<form name="returntolist" action="list.cfm" method="post">
<cfloop item="f" collection="#x#">
<input type="hidden" name="#f#" value="#Evaluate('x.#f#')#">
</cfloop>
</form>
Jim
----- Original Message -----
From: "Jim McAtee" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, February 19, 2002 11:07 AM
Subject: Serialize/Deserialize Form Submission
> I've got an application where I'd like, after drilling down a few levels,
to
> be able to return to the results of a search query. When the user clicks
> 'return to search results', the form would be resubmitted, a new search
> takes place and they're 'back' to where they were. The idea of
resubmitting
> the original search form has some advantages over passing around a query
> resultset (or caching the query). For instance, if an item is deleted, or
> changed in some way that now excludes it from the query results, then by
> resubmitting the query, that item won't be displayed.
>
> I'm thinking of using cfwddx to serialize the 'form' collection and
passing
> it around as a hidden form variable. Question is, how do I deserialize it
> in a manner that I can use the data to resubmit the original form?
>
> Thanks,
> Jim
______________________________________________________________________
Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona
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