Results 1 to 2 of 2

Thread: Select from table ......

  1. #1
    Join Date
    Mar 2011

    Select from table ......

    What I need to do is select the items from a existing table, and then display them in a dropdown form element. The user would select an item from the dropdown to be inserted in a text area. I was able to pull this off years ago, however I took a long hiatus.

    Any pointers? TIA

  2. #2
    Join Date
    Nov 2010
    Ok lets try lol

    form > sends a post item variable to a php file > echo out <select> tag with the id of selected > php file connects to your mysql database table where contains post item variable > then starts a while command > this will echo out <option>THE CONTENT</option> (it will repeat to show more items) > use javascript to display their 2nd item selected like:
    document.getElementById('textbox').value = document.getElementById('selected').value;
    sorry if this is confusing

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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