Hello everyone.
How do you handle processing dynamic forms?

Here is my example code:

<CFQUERY name="equipment" datasource="DSN">
SELECT      ID, Category, Item
FROM         Equipment
ORDER BY  ID
</CFQUERY>

<HTML>
<BODY>

<FORM METHOD="post" action="ActionPage.cfm" >

<TABLE>

  <TR>
 <TD CLASS="title" WIDTH="141" HEIGHT="13">ID</TD>
 <TD CLASS="title" WIDTH="141" HEIGHT="13">Category</TD>
 <TD CLASS="title" WIDTH="248" HEIGHT="13">Item</TD>
 <TD CLASS="title" WIDTH="91" HEIGHT="13">Quantity
    </TD>
  </TR>

<CFOUTPUT query="equipment">
<TR>
 <TD CLASS="text" HEIGHT="5">#equipment.ID#</TD>
 <TD CLASS="text" HEIGHT="5">#equipment.category#</TD>
 <TD CLASS="text" HEIGHT="5">#equipment.item#</TD>
 <TD CLASS="text" HEIGHT="5">

 <INPUT type="text" name="Item_#id#" SIZE="5" WIDTH="10" value=""
CLASS="monospace">

 </TD>
</TR>
</CFOUTPUT>

</FORM>
</BODY>
</HTML>


This code will generate a form with over 150 text boxes.  The user
should be able to order more than one item.

Any suggestions on a clever way to process this form would be greatly
appreciated.

I would hate to hard code Item_1, Item_2, Item_3.....Item_150.

Thanks in advance.

Melisas


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to