I have two pages, an input form and an insert.asp page.
The input form calls the insert.asp form which submits to the database.
I am trying to populate most of the input text fields with values from the database so that the user won't have much to input into the form.
My question is how do I populate them based on a criteria.
Example, <TR>
<TD ALIGN=LEFT> <B><FONT CLASS='Arial10'>
full name<B>
</TD>
<TD ALIGN=LEFT>
<select name="fullName">
<%
sql = "SELECT tblA.EmpID, * FROM tblA "
set EName = safetyDB.Execute(sql)
While not fullname.EOF
%>
<OPTION value="<%=fullname(0)%>"><%=fullname(1)%></OPTION>
<%
fullname.MoveNext
wend
%>
</select>
</TD>
</TR>
Based on this code, when I select a name, I would like address, city, state, zip, phone, and all data associated with fullname to be automatically populated.
How can I do this and second, should this be done on the input form page or insert page?
Thanks and I hope this question is clear
The input form calls the insert.asp form which submits to the database.
I am trying to populate most of the input text fields with values from the database so that the user won't have much to input into the form.
My question is how do I populate them based on a criteria.
Example, <TR>
<TD ALIGN=LEFT> <B><FONT CLASS='Arial10'>
full name<B>
</TD>
<TD ALIGN=LEFT>
<select name="fullName">
<%
sql = "SELECT tblA.EmpID, * FROM tblA "
set EName = safetyDB.Execute(sql)
While not fullname.EOF
%>
<OPTION value="<%=fullname(0)%>"><%=fullname(1)%></OPTION>
<%
fullname.MoveNext
wend
%>
</select>
</TD>
</TR>
Based on this code, when I select a name, I would like address, city, state, zip, phone, and all data associated with fullname to be automatically populated.
How can I do this and second, should this be done on the input form page or insert page?
Thanks and I hope this question is clear