in reply to repopulate HTML form from database

Select the record from the DB, pass it to your template as a JSON-encoded data structure, use a Javascript framework like Angular to populate the form controls on the HTML page from the JSON data object.


The way forward always starts with a minimal test.