View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
You will have to use a Request.FormCount("ACTION") to find how many options were selected.  Once you know, you can use Request.Form("ACTION", n) to retrieve each value, where n is a number from 0 to the total number of selected options.  Alternatively, you can use the Request.FormArray method to retrieve an array of all options.  The documentation contains more details on the various methods of the Request object.  Here's some sample code:
 

TotalSelections = Request.FormCOunt("ACTION")

FOR i = 1 TO TotalSelections

    Response.Write(Request.Form("ACTION", i))

NEXT

 
FoxWeb Support Team
support@foxweb.com email
Sent by Jeff Grippe on 07/03/2008 12:21:54 PM:
Hi, thanks for the help

Suppose I have an HTML table that is on a form and populated by a cursor...

Suppose I want to use a SELECT / OPTION tag to allow the user to update information in multiple records...

How do you deal with the "NAME" property?

If I were to code

<%SCAN%>
<TR>
<TD>
<SELECT NAME="ACTION">
<OPTION VALUE="FIRST">FIRST OPTION</OPTION>
<OPTION VALUE="SECOND">SECOND OPTION</OPTION>
</OPTION>
</TD>
</TR>
<%ENDSCAN%>

Then every select option group would update the same form variable.

Is there a good way to do this?

Thanks,
Jeff