|
 |
access_asp thread: save textfields value
Message #1 by "Rayess" <mrayess_1980@h...> on Sat, 7 Sep 2002 09:20:12
|
|
Hi;
I am developing an application where I have in some page textfields generated
randomly depending on the number of students (it is a query, and while not
sqlEmp.not eof... generate textfields), the fields take the names:
std_email1,std_email2,...etc("std_email"&i).. each textfield is followed by a "save"
image, when the user type the email and click on the image, the email address he
typed is to be saved in the db..
How can perform this, i.e. updating the db just after he clicks the image??
Regards
Message #2 by "Ken Schaefer" <ken@a...> on Mon, 9 Sep 2002 11:53:00 +1000
|
|
Do it differently.
Store all the StudentIDs in a field called txtStudentID.
Name all the text fields std_email<%=StudentID%>
Then, on the next page you can do:
If Request.Form("txtStudentID").Count > 1 then
For i = 1 to Request.Form("txtStudentID").Count
Response.Write(Request.Form("std_email" &
Request.Form("txtStudentID")(i)) & "<br>")
Next
End If
That way you can link up each incoming text field with the appropriate
studentID. I'm doing something up to put on my website about this which'll
have a more detailed explanation.
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Rayess" <mrayess_1980@h...>
Subject: [access_asp] save textfields value
: Hi;
: I am developing an application where I have in some page textfields
generated
: randomly depending on the number of students (it is a query, and while not
: sqlEmp.not eof... generate textfields), the fields take the names:
: std_email1,std_email2,...etc("std_email"&i).. each textfield is followed
by a "save"
: image, when the user type the email and click on the image, the email
address he
: typed is to be saved in the db..
: How can perform this, i.e. updating the db just after he clicks the
image??
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
 |