Antother method could be to use the following code.
<%
DataToAdd = Request.form("SID1")&Reque
'Open your database connection here with something like conn = "Connection Strings"
SQL = "Insert into Table (FieldtoInsertInto) Values ('"&DataToAdd&"')"
'Execute your database connection here with something like conn.execute(sql)
%>
Hope this helps
Main Topics
Browse All Topics





by: DexstarPosted on 2003-12-12 at 14:40:08ID: 9931522
@cakirfatih:
> while i am recording to database, it should also use the SID number on the same form
> so the databse view may look like this
Do you already know how to write ONE value to the database? Or do you need help with that too?
If you can write one value to the database, you just need to repeat the process up to 8 times. Say your text fields are called "Text1" through "Text8". Then you want to do this:
AddToDatabase Request.Form("SID"), Request.Form("Text1")
AddToDatabase Request.Form("SID"), Request.Form("Text2")
AddToDatabase Request.Form("SID"), Request.Form("Text3")
AddToDatabase Request.Form("SID"), Request.Form("Text4")
AddToDatabase Request.Form("SID"), Request.Form("Text5")
AddToDatabase Request.Form("SID"), Request.Form("Text6")
AddToDatabase Request.Form("SID"), Request.Form("Text7")
AddToDatabase Request.Form("SID"), Request.Form("Text8")
Now, you just need the function to add the values to the database. How far along are you with that?
Hope That Helps,
Dex*