Autocomplete multiple fields

Hi,

I am wondering if anybody can help or point me in the right direction. I am a beginner to PHP coding but have managed to set up a CRUD to record staff accident reports. The task I want to achieve is to have a form with different fields such as name, address, telephonenumber etc, now when the user starts typing in the name input field it would offer autocomplete suggestions of user profiles that is has pulled from the mysql database. Then when an autocomplete option is selected the other fields such as address and telephone number are also autocompleted.

Hope this makes sense.

Just extend your autocomplete algorithms to reply with a complete set of data tha you can then populate in HTML fields like you already did with the simple autocomplete.

Do you have experience with javascript? Google on ajax and json.

Sponsor our Newsletter | Privacy Policy | Terms of Service