value in listbox

Results 1 to 2 of 2

Thread: value in listbox

  1. #1
    Join Date
    Dec 1969

    Default value in listbox

    In my code I am allowing a user to edit data they have previously entered in a form.The listbox will allow them to choose any of the options from the database but I want their previous choice to appear as default in listbox.I pass the Issue ID to this page and can display the data as text but the listbox just gives me the same list from the database each time.<BR>PLEASE HELP!!!!!!!!

  2. #2
    fsm Guest

    Default RE: value in listbox

    How are you selecting the value in the list box?<BR><BR>if somevalue = selected value then<BR>response.write "&#060;option SELECTED value=&#039;somevalue&#039;&#062;current value&#060;/option&#062;"<BR>else<BR>response.write "&#060;option value=&#039;somevalue&#039;&#062;current value&#060;/option&#062;"<BR><BR>fsm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts