I've got a form with many checkboxes. The name for the form checkboxes is "menu"
In my ASP page I'm trying to set cookies and then test for their presence.
<%
dim iCount
I'm confused on the syntax of setting a cookie. specificaly the name for the cookie, response.cookie("this here"). I've chosen menu, the same name as the checkboxes but am not sure.
for iCount=1 to request.form("menu").count
--here i'm trying to set the cookies.--
response.cookies("menu") = request.form("menu")(iCount)
next
--and here I'm trying to retrieve cookies.--
for x=0 to uBound(request.cookies("menu"))
response.write "<br>" & x & " = " & request.cookies("menu")(x)
next %>
In my ASP page I'm trying to set cookies and then test for their presence.
<%
dim iCount
I'm confused on the syntax of setting a cookie. specificaly the name for the cookie, response.cookie("this here"). I've chosen menu, the same name as the checkboxes but am not sure.
for iCount=1 to request.form("menu").count
--here i'm trying to set the cookies.--
response.cookies("menu") = request.form("menu")(iCount)
next
--and here I'm trying to retrieve cookies.--
for x=0 to uBound(request.cookies("menu"))
response.write "<br>" & x & " = " & request.cookies("menu")(x)
next %>