Hi Karl,

I beleave it would look like:

<cfset cgistring="">
<cfloop index="field" list="#form.fieldnames#">
        <cfset tmp = field & '=' & evaluate('#field#')>
        <cfset cgistring = ListAppend(cgistring, tmp, "&")>
</cfloop>

<cflocation url="goto.cfm?#cgistring#">

Dimitri




-----Original Message-----
From: A. Karl Zarudny [mailto:[EMAIL PROTECTED]]
Sent: April 25, 2002 10:47 AM
To: [EMAIL PROTECTED]
Subject: Re: [CFTALKTor] getting field values WAS: automatically
listingformfields and their values in url


Ok. I've managed to figure out part of this (I think).

I use a loop to loop over form.fieldnames and within the loop I set an
ampersand delimited list but I need to loop over the fields' respective
values so that I can set my list to
"fieldname1=fieldvalue1&fieldname2=fieldvalue2".... I can't remember how to
get the field values. I did a search of CF's docs as well as the language
ref but I'm just not seeing it. So now my question is how do I get the field
values and associate them with their respective field names?

Once I have my list formatted as required I simply drop that into my
cflocation url. At least that's what I'm thinking :-)

Thanks,
Karl

> From: "A. Karl Zarudny" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Thu, 25 Apr 2002 10:17:26 -0400
> To: <[EMAIL PROTECTED]>
> Subject: [CFTALKTor] automatically listing formfields and their values in url
> 
> Hi everybody.
> 
> I'm pretty sure there's a way to do what I want to do but I can't seem to
> think of how. What I'm trying to do is automatically append to an url in a
> cflocation, the formfield names and their respective values from the
> submitting page.
> 
> i.e.
> <cflocation url="goto.cfm?#formfieldname1#=#formfieldvalue1#&
> #formfieldname2#=#formfieldvalue2#(and so on)">
> 
> Thanks,
> Karl
> 
> -
> You are subscribed to the CFUGToronto CFTALK ListSRV.
> This message has been posted by: "A. Karl Zarudny" <[EMAIL PROTECTED]>
> To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
> Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
> This System has been donated by Infopreneur, Inc.
> (http://www.infopreneur.net)

-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "A. Karl Zarudny" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "Dimitri  Abramov" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)

Reply via email to