forms help

chococatchococat BeginnerLink Clerk
I am having a problem with forms.

I have two forms.

Form #1 consists of a list box and a "view" button under it. The list box contains entries from a mysql database fetched by a php script.

Form #2 consists of text fields.

When I click the view button, the fields in form # 2 shoudl contain fields from the row corresponding to the selected entry in the list box.

Is javascript appropriate to solve this?

Comments

  • kinkkink serious member VPS - Virtual Prince of the Server
    yes onclick form entry value =
  • gyhkcxgyhkcx Beginner Link Clerk
    Obviously, you can set the textfield's value to document.formname.selectfieldname[document.formname.selectfieldname.selectedIndex].value on onClick or onChange event of the listbox
Sign In or Register to comment.