?x=x<cfloop collection="#form#" item="i">&#i#=#form[i]#</cfloop>

-----Original Message-----
From: Matt Blatchley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 27, 2008 11:52 AM
To: CF-Talk
Subject: Re: sending entire Form back on a url string

I actually wrote that incorrectly...  StructKeyArray(form) will return an 
array of the Keys in the Struct, not convert it, then you'd use 
form[arrayName[i]] to access the value of the referenced Key....

>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
>






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:302190
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to