I have these variables that I want to get a total from.
Bquantity1 = FormatNumber((request("txtquantityopt1"),0)
Bquantity2 = FormatNumber((request("txtquantityopt2"),0)
Bquantity3 = FormatNumber((request("txtquantityopt3"),0)
I use this to get the total
Btotal = Bquantity1 + Bquantity2 + Bquantity3
but instead of adding the numbers (1+2+3=6), I get them combined (123)
What am I doing wrong?
Bquantity1 = FormatNumber((request("txtquantityopt1"),0)
Bquantity2 = FormatNumber((request("txtquantityopt2"),0)
Bquantity3 = FormatNumber((request("txtquantityopt3"),0)
I use this to get the total
Btotal = Bquantity1 + Bquantity2 + Bquantity3
but instead of adding the numbers (1+2+3=6), I get them combined (123)
What am I doing wrong?