SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Oct 2003
    Location
    uk
    Posts
    15
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    list menu and other fields

    Hi,
    I have a list menu on a form and some other fields which are text boxes. When I select an item in the list box I want the associated data to be populated in the text fields. The list box is dynamically populating ok and the database connections is working fine. I am using Dreamwever and believe this can be done with the server behaviours.

    The aim is to be able to choose from the list box, then either edit or delete the associated record. Or maybe I am going about this the wrong way. Any advice would be appreciated.

    Mark

  2. #2
    Also available in Large Si's Avatar
    Join Date
    Sep 2002
    Location
    Walsall, UK
    Posts
    1,911
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Best way:

    Code:
    <form name="form1" method="post" action="">
    <select name="mylist" size="5" id="mylist" onchange="document.form1.mytext.value=this.value;">
    <option value="item 1">item 1</option>
    <option value="item 2">item 2</option>
    <option value="item 3">item 3</option>
    <option value="item 4">item 4</option>
    </select>
    <input name="mytext" type="text" id="mytext">
    </form>
    Si
    Are you a Photoshop Jedi Master? Prove it!

    Is funky house your bag? You'll love this!

    Voice
    , eyes, ears, body and hands.


  3. #3
    SitePoint Addict Pace's Avatar
    Join Date
    Sep 2003
    Location
    Manchester - UK
    Posts
    298
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Where abouts are you with this one?


Bookmarks

Posting Permissions

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