Home:ALL Converter>Fill html form input fields with MySQL data onclick

Fill html form input fields with MySQL data onclick

Ask Time:2016-05-15T02:35:29         Author:Sid Gut

Json Formatter

I've got a MySQL database and a few php/html forms that work fine. What I want to do, but haven't been able to figure out, is to display a form that can be filled when I enter a key value to retrieve a record from the database and fill that data in the input fields of the form like Name, Address etc..

Like: Enter Customer ID to fill in all Customer Details in the form automatically.

Anyone have any examples of how to do this? I'd appreciate the help.

Author:Sid Gut,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/37230452/fill-html-form-input-fields-with-mysql-data-onclick
yy