Populating a web form from a lookup table
Hi
I am looking for some expert help please
I have a lookup query
<cfquery name="emp">
select * from employee
where empid = '#form.empid#'
</cfquery>
and what I would like to do is when a user enters their employeeid in a text input field and clicks "find" it triggers the query and brings back that employees details and populates the other form fields on the pages (name, address etc) without a page refresh.
What I can't understand is when they click the "find" button after they have entered an employee ID how does it trigger the query (and where would the query sit within the page) and how would the results get returned to populate the form without a page refresh?
If anybody has some code examples this would be great, I am using CF7
TIA
