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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple addtion!!! 2

Status
Not open for further replies.

craigward

Programmer
Nov 13, 2007
230
GB
Hi,
I have a problem for adding a verbal to itself on click of a button. i want variable a to always hold the value and add the new value to it i submit the form. At the moment it adds to itself onclick then adds the new number to itself....

Any help would be great.

Thanks

Code:
Dim a, b

a = cint(Session("numtickets"))
b = cint(a)+cint(Session("numtickets"))

response.write(b)
 
Glad to help, thanks for the star [smile]

HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin

Get the most out of Tek-Tips, read FAQ222-2244 before posting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top