Here is the situation, I'm using PHP programming and MySQLi DB. I want it to be able to search customer name real-time.
When I click the customer name that showed up as I key in letters, it automatically finds the customer's home address and set the value in address text field.
The customer name also will remain to stay in the search text field as the value before I can submit the form to insert it in another table.
Can someone teach me how to do that?
Code sample:
<form name="insert_form" method="POST">
<label>Search Customer</label>
<input type="text" name="searchCust"/>
<label>Address</label>
<input type="text" name="addressCust"/>
<input type="submit" name="insert" value="INSERT"/>
</form>