Display value from database

Results 1 to 3 of 3

Thread: Display value from database

  1. #1
    Join Date
    Dec 1969
    Posts
    9

    Default Display value from database

    How do i retrieve information from database and display the value into the form?<BR><BR>i have a form like this:<BR>&#060;input type="text" name="userid"&#062;<BR><BR>

  2. #2
    Join Date
    Dec 1969
    Posts
    96,118

    Default RE: Display value from database

    &#060;input type="text" name="userid" value="&#060;%=RS("userID")%&#062;"&#062;<BR><BR>T he field name in the DB does *NOT* have to match the field name in the form, though people often code that way. Is show it like that, but you really can use any names you want to.<BR><BR>

  3. #3
    Join Date
    Dec 1969
    Posts
    9

    Default RE: Display value from database

    What if i have two radio buttons?<BR><BR>my radio buttons:<BR>&#060;label for="m"&#062;&#060;input name="gender" type="RADIO" value="&#060;%=rs("Gender")%&#062;" id = "m"&#062;Male&#060;/label&#062;&nbsp;&nbsp;&nbsp;<BR>&#060;label for="f"&#062;&#060;input name="gender" type="RADIO" value="&#060;%=rs("Gender")%&#062;" id = "f"&#062;Female&#060;/label&#062;<BR><BR>is this the correct way of retrieving from database?

Posting Permissions

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