try to have similar function as in google bookmark, where u can have ajax suggest.
try here [url removed, login to view]
the list of suggested values is stored as a variable "var labelList" in js script itself.
1. *want to make it dynamically, everytime user refresh this page, update labelList by querying mysql table test99
2. currently in the textbox, user can key in multiple label values.
*want to disable this, after user enter 1st label, disable ajax suggest so that user can not enter 2nd label
3. as user enter value for label, there are 2 cases:
- the label is selected from suggest list, get $id from table test99(id,label_name), then print $id
- the label is a new one $new_label_name. insert into test99(label_name) values($new_label_name)