why am I losing the last name?

Results 1 to 3 of 3

Thread: why am I losing the last name?

  1. #1
    Join Date
    Dec 1969

    Default why am I losing the last name?

    I have form that has a select control that is being populated by another table using this...<BR>do while rs.EOF &#060;&#062; true<BR> Response.Write "&#060;OPTION value=" & rs("UserName") & "&#062;" & rs("UserName") & "&#060;/OPTION&#062;"<BR> rs.MoveNext<BR> loop<BR>...it is working and I see my list of names first name, last, populated in the list box. <BR>My problem is that when I submit this form to another page and do a request.form("selectFrom") I only get the first name?<BR>Does anyone know why this is happening and why is it dropping my last name?<BR><BR>Jose

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Cause you did not read the FAQs


  3. #3
    Join Date
    Dec 1969

    Default RE: why am I losing the last name?

    you&#039;ll need to have quotes around option value in the code you output. Easiest way I&#039;ve found is using the ASCII code:<BR><BR>Response.Write "&#060;OPTION value=" & chr(34) & rs("UserName") & chr(34) & "&#062;" & rs("UserName") & "&#060;/OPTION&#062;"<BR><BR>

Posting Permissions

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