Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Populate Text Field From List/Menu

New Here ,
Feb 06, 2010 Feb 06, 2010

Hi All,

I know this has been posted elsewhere, but I don't seem to be able to get anything to work.

I have a List/Menu populated by a table in a database: There are two fields ID and Name_Combined.

The Menu/List consists of the Names but I need to auto fill the ID into a text field dependant on the name selected.

I am using Dreamwaever CS4 and the asp file is attached.

Many thanks

TOPICS
Server side applications
459
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 07, 2010 Feb 07, 2010

I haven't done ASP for a long time, so the code in your page looks like Klingon to me. However, it strikes me that you're approaching this the wrong way. Instead of applying the combined name to the value of each option, use the combined name as what is displayed in the menu, and assign the ID to the value. Then, when the form is submitted, the ID will be submitted automatically by the menu. There is no need for the text field.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 07, 2010 Feb 07, 2010
LATEST

Many thanks for your reply. You are quite correct. I WAS going about it the wrong way!

Regards

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines