krappleby025
Programmer
hi all i have a simple script that is supposed to add, two numbers together, one is a database number and the other is a form input number, but its not working, if the database is set at 50 and the form sends 8 then the result ends up being 508 or 805 and not 58 like it should be,
funny thing is i am using the + sign
take a look
amountadd = request.form("amount"
Set con = server.Createobject( "ADODB.Connection" )
con.open = ""
set query = con.execute("SELECT amount FROM money where idnum=1"
oldamount = query("amount"
totalamount = amountadd + oldamount
%>
new amount is = <% =totalamount %>
would like your comments
thanks
funny thing is i am using the + sign
take a look
amountadd = request.form("amount"
Set con = server.Createobject( "ADODB.Connection" )
con.open = ""
set query = con.execute("SELECT amount FROM money where idnum=1"
oldamount = query("amount"
totalamount = amountadd + oldamount
%>
new amount is = <% =totalamount %>
would like your comments
thanks