Page 1 of 1

Fill in form from dropdown list

Posted: Mon Mar 31, 2008 9:36 am
by crimmelcp
I need to know the best way :
when the user selects a vendor from a dropdown select box
the vendor information will be filled in on the form
(example code please)
see attached jpg


Attachment:
File comment: Dropdown select box
vendor_select.jpg
vendor_select.jpg (13.54 KiB) Viewed 135 times


Thanks
Charlie Crimmel

Re: Fill in form from dropdown list

Posted: Mon Mar 31, 2008 9:53 am
by aceconcepts
If you want the form to be filled "on change" of the drop-down list then you will have to use Javascript/Ajax.

If you were to have a submit button alongside of the drop-down list then you could use php.

Which one will you use?

Re: Fill in form from dropdown list

Posted: Mon Mar 31, 2008 6:38 pm
by crimmelcp
form to be filled "on change" of the drop-down list
Vendor Name looks up on the Vendor Table and the other fields are filled in

Thanks
Charlie Crimmel