I would convert the Struct into an Array using StructKeyArray(form). Then loop through the array and build the URL string appending the & in-between each value. Then you can then attach it to the URL. But URL strings in some browsers have a character limit, so as long as that's not an issue, then it should work. The other thing is that your form value pairs would need to be "simple values" and not arrays, otherwise you'd have to do some more work when you build the URL string inside the loop.
Matt ----- Original Message ----- From: "Don L" <[EMAIL PROTECTED]> To: "CF-Talk" <cf-talk@houseoffusion.com> Sent: Thursday, March 27, 2008 9:32 AM Subject: Re: sending entire Form back on a url string > >Morning, >> >>Having a brain freeze. >> >>I want to send an entire set of form variables back to the previous page >>on >>the url string. >> >>Obviously >> >>previous_page.cfm?formStructure=#Form# >> >>doesn't work. I can't for the life of me remember how to do this. >> >>Cheers >> >>Will > > Will, the following technique would work, however, as mentioned, passing > data via URL has its limit. > > <form > action="passFormViaURL.cfm?name=document.getElementId('yourName').innerHTML&email=document.getElementId('email').innerHTML" > > method="get"> > Name: <input type="text" id="yourName" name="yourName"><br/> > Email: <input type="text" id="email" name="email"> > <input type="submit" name="send" value="Submit"> > </form> > > Personally I'd prefer a more elegant approach of using ajax... > > Don > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;192386516;25150098;k Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:302177 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4