+ 1
you should query the database to select data, and then either send json data (to be handle on client side with javascript to be assigned to the textfield value attribute) or generate html file with textfield (where value attribute is set to the select query result)...