i know exactly what you mean, i've had to do it myself more times than i
care to remember.  on the following page, to "decode" the form fields, you
can do one of two two things, you can either walk the formfields structure,
or you can do something like this:

<cfloop query="queryname">
        <cfset theValue = evaluate("checkbox_" & queryname.empname)>
</cfloop>

or something like that.  at any rate if you want to be able to generate form
fields on the fly like this, the page that you are submitting to, will need
to do "evaluate" on the fields.

Wayne E. Pfeffer
Sr. Web Apps Developer
NetRadio.com

-----Original Message-----
From: eric fleming [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 03, 2000 8:21 AM
To: CF-Talk
Subject: Re: dynamic form


This is a multi-part message in MIME format.
--------------A581FDABC5BDB8988D157762
Content-Type: multipart/alternative;
 boundary="------------117F3F41F77A1390D6E587AC"


--------------117F3F41F77A1390D6E587AC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

put it in a <cfloop query="queryname"></cfloop>

er:c


Gavin Myers wrote:

> this is buggin' me
> okay, lets say the database consists of:
>
> emp_name
> roy
> joe
> billy
> gus
>
> cf_code (simplified)
>
> <cfquery>
> select * from names
> </cfquery>
> <cfform>
> Who woule you like to fire?
> <cfoutput>
> #emp_name# <cfinput type = "radio" value = "0">No<cfinput type = "radio"
> value = "1">Yes
> </cfoutput>
> <input type = "submit" value = "submit">
> </cfform>
>
> In order for this to work i have to specify a name so my radio buttons
will
> work. In order to give my radio buttons a name i have to give them a
dynamic
> name (like #emp_name#)
>
> so when i go to my next page, how do i call those dynamic set feild names?
>
> like #form.#emp_name##?
>
> know what i mean?
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/[email protected]/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

--------------117F3F41F77A1390D6E587AC
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
put it in a &lt;cfloop query="queryname">&lt;/cfloop>
<p>er:c
<br>&nbsp;
<p>Gavin Myers wrote:
<blockquote TYPE=CITE>this is buggin' me
<br>okay, lets say the database consists of:
<p>emp_name
<br>roy
<br>joe
<br>billy
<br>gus
<p>cf_code (simplified)
<p>&lt;cfquery>
<br>select * from names
<br>&lt;/cfquery>
<br>&lt;cfform>
<br>Who woule you like to fire?
<br>&lt;cfoutput>
<br>#emp_name# &lt;cfinput type = "radio" value = "0">No&lt;cfinput type
= "radio"
<br>value = "1">Yes
<br>&lt;/cfoutput>
<br>&lt;input type = "submit" value = "submit">
<br>&lt;/cfform>
<p>In order for this to work i have to specify a name so my radio buttons
will
<br>work. In order to give my radio buttons a name i have to give them
a dynamic
<br>name (like #emp_name#)
<p>so when i go to my next page, how do i call those dynamic set feild
names?
<p>like #form.#emp_name##?
<p>know what i mean?
<br>------------------------------------------------------------------------
------
<br>Archives: <a
href="http://www.mail-archive.com/[email protected]/">http://www.mai
[EMAIL PROTECTED]/</a>
<br>To Unsubscribe visit <a
href="http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_tal
k">http://www.houseoffusion.com/index.cfm?sidebar=lists&amp;body=lists/cf_ta
lk</a>
or send a message to [EMAIL PROTECTED] with 'unsubscribe'
in the body.</blockquote>
</html>

--------------117F3F41F77A1390D6E587AC--

--------------A581FDABC5BDB8988D157762
Content-Type: text/x-vcard; charset=us-ascii;
 name="eflem.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for eric fleming
Content-Disposition: attachment;
 filename="eflem.vcf"

begin:vcard
n:Fleming;Eric
tel;fax:954.351.9099
tel;work:954.351.5554 ext. 113
x-mozilla-html:FALSE
url:www.tekgroup.com
org:TEK group International Inc.;Programming
adr:;;;Ft. Lauderdale;FL;;
version:2.1
email;internet:[EMAIL PROTECTED]
title:Internet Consultant
fn:Eric Fleming
end:vcard

--------------A581FDABC5BDB8988D157762--

----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to