Need code to fill in form

Looking to hire a PHP developer for a paid position? Looking for a paid PHP job? Want to post your resume? Let the job hunt begin...

Moderator: General Moderators

Post Reply
crimmelcp
Forum Newbie
Posts: 16
Joined: Mon Jan 28, 2008 8:48 pm

Need code to fill in form

Post 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 343 times
Thanks
Charlie Crimmel
AMCH
Forum Commoner
Posts: 31
Joined: Sun Mar 30, 2008 4:39 pm

Re: Need code to fill in form

Post 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
Post Reply