• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to get last selected value in list box?

 
Nitin Jawarkar
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,

I have used select tag in html, on first page i select one from list and
stored that in database SQL server, then on one id i m getting all data related to that id but problem is how to get value of selected item in list and also other should display in list box.
Code is look like this....

<select name="group" >
<cfoutput query="user">
<option>#company_group#</option><br>
</cfoutput>
</select>
</select>
in output it shows onle one value from table
Thanks....
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
cold fusion eh....ewww...but that is a different story?

Not sure what you are asking exactly. Are you asking how to add a value?

<option value="YourValue">

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic