Page 1 of 1

Need code to fill in form

Posted: Sun Mar 30, 2008 5:17 pm
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
Dropdown select box
Dropdown select box
select vendor.jpg (12.76 KiB) Viewed 345 times
Thanks
Charlie Crimmel

Re: Need code to fill in form

Posted: Sun Mar 30, 2008 5:35 pm
by AMCH
The best way to do this is to use AJAX. Upon selection of an item in the drop menu the code will read information from your database and assign it to variables and then insert those variables into the "value" tag of your fields.

I think this has been posted in the wrong area though as it's not really related to paid work.

Anyway, not got time to post any code but maybe someone else will, it's not that difficult to achieve though and if you do a little bit of research you will be able to work it out! :D

Kind Regards
AMCH