Dave,
> 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#">
This isn't good code. Change the | for an underscore:
<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#.
And then you can do:
<cfloop list="#form.fieldnames#" index="i">
<cfset displayorder = listlast(i, "_")>
</cfloop>
Not a huge change
Paul
--
** 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]