Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sum field value

Status
Not open for further replies.

nonprogrammer

Technical User
Dec 28, 2005
143
0
0
US

Hello I am writing a script where I have

Code:
<%= rsGuestbook ("B1R1G2")%><%if rsGuestbook ("B1R1G2")=rsGuestbook ("B1R1G2w")then value="3" else response.Write(" Lost")end if%><% if value="3" then response.Write(" Win 3 Points")else response.write(" 0 points") end if%>

I know you can do something like this to sum

Code:
<%
	dim total
	
	response.write(request(""))
	
	response.write(request(""))
	total = cint(request("")) + cint(request(""))
	response.write("<br>the sum is ")
	response.write(total)
%>

what I don't know is what should I put in the
Code:
request("??")

any idea?

Thanks
 
Look on your URL bar. You will see something like "?qid=1332532&page=1". "qid" and "page" are the things that go inside request. In this case they will return the values 1332532 and 1.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top