Using ASP, you would do something like this.
VB ASP Logic...I'm assuming you know how to read a database with ADO.
' Get the field values
Field1 = ""
Field2 = ""
If Not myRecordSet.EOF Then
Field1 = myRecordSet.Fields(0).Valu
Field2 = myRecordSet.Fields(1).Valu
End If
.....
HTML Forms Logic...
<INPUT TYPE=TEXT NAME="Field1" VALUE="<%= Field1%>" SIZE=20>
<INPUT TYPE=TEXT NAME="Field2" VALUE="<%= Field2 %> SIZE=20>
That's how easy it is.
Rob
Main Topics
Browse All Topics





by: garrethgPosted on 1999-10-14 at 11:53:01ID: 2127575
Prehaps all you need is just to write into the INPUT's VALUE attribute via whatever mechanisim you're using in ASP?
<INPUT TYPE="text" VALUE="the results of your DB lookup">
<TEXTAREA>the results of your DB lookup</TEXTAREA>