Welcome Guest ( Log In | Register )

Outline · [ Standard ] · Linear+

 selection of combo box in asp

views
     
TSguest18
post Feb 6 2006, 04:13 PM, updated 20y ago

hisap hisap hisap
*******
Senior Member
2,236 posts

Joined: Jan 2003


I manage to populate a combo box with item from a database
how if I want to copy information inside that particular selection into another table ?

for example I populate combo box from table fruit
and I select apple and inside the row got amount of how many apple there is avaliable and want to add the amount to table call amount

and display this amount out
TSguest18
post Feb 6 2006, 04:57 PM

hisap hisap hisap
*******
Senior Member
2,236 posts

Joined: Jan 2003


QUOTE(shinchan^^ @ Feb 6 2006, 04:44 PM)
CODE
<select Name="fruitName">
 <%do while not resultSetFruit.eof=true
     Response.Write "<option value=" & resultSetFruit("FruitName") & ">" & resultSetFruit("FruitName") & "</option>"

     resultSetFruit.MoveNext
           loop %>
             </select>

*
if I want to select 1 item from the displayed combo box
and add it to another table

how ?

 

Change to:
| Lo-Fi Version
0.0125sec    0.52    6 queries    GZIP Disabled
Time is now: 24th December 2025 - 11:57 AM