I think i know what you getting at...
If you want to display information from a database in a text box, or a one line text box do the following:
First, connect to you database, and collect the information, if you prefer, set them to variables, then when you make your form, use:
<input type="text" name="YourName" size="20" value="<? echo"$yourvariable"; ?>">
or
<textarea rows="2" name="YourName" cols="20"><? echo"$yourvariable"; ?></textarea>
if you use a text box.
I hope this is what you were looking for.