我有一个名为Tbltest
我有以下字段:
MAINID
NAME
ADDRESS
ADDRESS2
DEL_STATE
ZIPCODE
TELEPHONE
FAX
我想要做的是:在文本输入框中输入NAME
,当我输入4个以上的字符时,它将搜索数据库以查看NAME
是否存在
如果它确实那么它将获得NAME, ADDRESS, ADDRESS2, DEL_STATE, ZIPCODE, TELEPHONE, FAX
并将它们放在他们自己的输入文本框中。
我还希望它显示某种类型的下拉菜单,如果有多个名称,例如,如果有2个或更多NAMES
为: john 或鲍勃等......
然后,用户将根据他们的CITY
和STATE
选择一个。
HTML表单会像这样:
NAME: [ ] <-- as the user enters the name (in this input textbox) and if it exists the below would auto fill up/show
Address: [ ] <-- This is a input textbox
City: [ ] <-- This is a input textbox
State: [ ] <-- This is a input textbox
Zip: [ ] <-- This is a input textbox
Telephone: [ ] <-- This is a input textbox
Fax: [ ] <-- This is a input textbox
ID: [ ] <-- This is a hidden input textbox
{ CONTINUE } <-- This is a button
所以唯一的选择是使用AJAX但我找不到MS SQL和ASP Classic的任何简单示例,更不用说那些具有多结果下拉列表的示例了。 请帮助...谢谢