Hi Martin,

Thanks for that, however it falls over on the Evaluate saying the | is an invalid token. Do I need to change delimiter?

Also how would I get this to display: form.menuid|thismenuid as the value of the field?

I have tried ###form.menuid|##thismenuid### but this falls over on the | symbol.

Any offers?

Cheers

Dave

At 10:49 2/25/2003 +0000, you wrote:
I've not tested this, but it may give you a hint


<CFLOOP INDEX="F" FROM="1" TO="#ListLen(FORM.FieldNames)#"> <CFSET Field = ListGetAt(FORM.FieldNames, F)> <CFIF ListFirst(Field, "|") EQ "menuid"> <CFSET ThisMenuID = ListLast(Field, "|")> <CFSET ThisValue = Evaluate ("FORM.menuid|" & ThisMenuID)> <!--- processing goes here --->



        </CFIF>
</CFLOOP>

HTH

Martin L. Gill, MSc - Programmer

For & on Behalf of UniTech
(The Universal Information Technology Group Ltd)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
URL: http://www.unitech.net
Email: [EMAIL PROTECTED]

UniTech House, 25 Bernard Street, Leith, Edinburgh, EH6 6SH
Tel:  +(44) 0131 472 5555
DDI: +(44) 0131 472 5560
Fax: +(44) 0131 472 5556






-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 25 February 2003 10:44 To: [EMAIL PROTECTED] Subject: Re: [ cf-dev ] Form loop help?



what's the loop code you've got?


Duncan Cumming IT Manager

http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600

Creative solutions in a technical world

----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------





Dave Phipps

                    <[EMAIL PROTECTED]        To:     ColdFusion User group
<[EMAIL PROTECTED]>
                    cf.co.uk>            cc:

                                         Subject:     [ cf-dev ] Form
loop help?
                    02/25/03

10:41 AM

Please

respond to

dev










Hi,


I have a form that I can't seem to work out how to handle.

I have some text fields which are defined as follows:

<input type="text" name="menuid|#menuid#" value="#displayorder#">

What I can't seem to work out is how to loop through these fields so
that
the value of #displayorder# is inserted against the #menuid#.

Any ideas?

Thanks

Dave


--


--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]



Reply via email to