FUNCTION Lastfunc lcDropBox= [<p><select size="1" name="dbxSection_<%=alltrim(ssn)%>">]+; [<option>A</option>]+; [<option>B</option>]+; [<option>C</option>]+; [<option>SS</option>]+; [</select></p>] SELECT ssn, lastname, Firstname, mergetext(lcDropBox) as Section; FROM officers WHERE orgno=1421 INTO table temp SELECT temp response.showcursor() ENDFUNC >This will give you unique names for each drop-down based on the SSN. You can then get a list of the form variables submitted and scan them for names starting with dbxSection_. Grab the value and read off the SSN and you're away!
>FUNCTION Lastfunc >lcDropBox= [<p><select size="1" name="dbxSection">]+; >[<option>A</option>]+; >[<option>B</option>]+; >[<option>C</option>]+; >[<option>SS</option>]+; >[</select></p>] > >SELECT ssn, lastname, Firstname, lcDropBox as Section; >FROM officers WHERE orgno=1421 INTO table temp >SELECT temp >response.showcursor() > >ENDFUNC >