If all of them pertain to shipping price than just name all of the form
elements the same. Then on the post side pull them back out with <cfloop
list="form.shippingPrice" index="nxtPrice">. Form element baring the same
name get posted in a comma separated list.
Bryan
----- Original Message -----
From: "Steve Herring" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Friday, January 05, 2001 7:29 PM
Subject: Dynamic Form Variable Names?
> Hey everyone!
>
> I have what I hope is a simple question that I'm just missing the answer
to:
>
> I have a page which contains a form with several <INPUT> tags which I need
> to dynamically generate. The code for this page is something like:
>
> <FORM ...>
> <CFLOOP INDEX="StepNum" FROM="1" TO="#shipping.RecordCount#" STEP="1">
> <CFIF shipping.method[StepNum] EQ "Ground">
> <TD><INPUT NAME="standard#StepNum#" VALUE="#shipping.price[StepNum]#"
> SIZE="5"></TD>
> </CFIF>
> </CFLOOP>
> <.../FORM>
>
> So my question is... on the posting/result page, how can I reference the
> form variables that were created such as form.standard1, form.standard2,
> form.standard3, etc by using some kind of loop variable on that side?
Such
> as #form.standard, StepNum#?
>
> Many thanks to any help!
>
> -Steve Herring
> Exact Interactive
> Portland, OR
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body or visit the list page at www.houseoffusion.com