Form autofill if value exist in database using AJax

I have a form I need to auto fill it using Ajax and php. Suppose My unique field is mobile number. So when form appears firstly person has to fill mobile number. If mobile number exist in the database than all the rest field retrieve its value that is his name, email etc, making all the text fields disable.

my approach to this work is on blur effect I can send value through AJAX. but how call values in array. I have called only single value through echo; but have not called array back from java script page.

Secondly I need jquery to fill all form with respective values and disable particular fields in form.

Give me some more idea to make this approach better and provide some hint to implement it efficiently.

newest questions tagged jquery – Stack Overflow

About Admin