hello,
I build a form to be submited.
in the form each user can enter their information. But it gets processed at the end of the day after all the info has been verified. Right now I can do a submit for each of the users, is there a way that I could submit all the users at once. right now I but a loopnext loop and get submit in each of the users
I build a form to be submited.
in the form each user can enter their information. But it gets processed at the end of the day after all the info has been verified. Right now I can do a submit for each of the users, is there a way that I could submit all the users at once. right now I but a loopnext loop and get submit in each of the users
Code:
<%
'Dimension variables
Dim adoCon 'Holds the Database Connection Object
Dim rsGuestbook 'Holds the recordset for the record to be updated
Dim strSQL
dim totalValue 'Holds the SQL query for the database
'Dim lngRecordNo 'Holds the record number to be updated
'Read in the record number to be updated
'lngRecordNo =CLng(Request.QueryString("ID"))
'Create an ADO connection odject
Set adoCon = Server.CreateObject("ADODB.Connection")
'Set an active connection to the Connection object using a DSN-less connection
adoCon.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("nuse.mdb")
'Set an active connection to the Connection object using DSN connection
'adoCon.Open "DSN=guestbook"
'Create an ADO recordset object
Set rsGuestbook = Server.CreateObject("ADODB.Recordset")
'Initialise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT * FROM gm, weeks order by total DESC"
<body>
<FORM NAME="nuserin" ACTION="updatein.asp" METHOD="POST">
my form
</span> <input name="total" type="hidden" value="<% response.Write(totalValue) & ""%>">
<input type="hidden" name="ID" value="<% =rsGuestbook("ID") %>">
<input type="submit" name="Submit" value="submit">
</form>
<!-- End form code -->
</body>
</html>
<%
'Increment the count by 1 to get the next number
rsGuestBook.MoveNext
Loop
End If
%>