PDA

View Full Version : forms help



chococat
09-12-2005, 01:56 AM
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?

kink
09-13-2005, 10:24 PM
yes onclick form entry value =

gyhkcx
09-22-2005, 07:33 AM
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