cw410005
10-17-2006, 05:14 AM
Sorry for such a newbie question!!
I have a form which gets a value on a page once this form is submitted I create a session variable on my next page
I then want to do some calculations on that number. Do I have to do anything like casting this string value to an integer? If so how do i do this
I thought this would work but doesnt:
Any advice would be a help.
<%session("num")=Request.Form("Number")
dim a
a=session("num")
a=a+5
Response.Write(a)
%>
I have a form which gets a value on a page once this form is submitted I create a session variable on my next page
I then want to do some calculations on that number. Do I have to do anything like casting this string value to an integer? If so how do i do this
I thought this would work but doesnt:
Any advice would be a help.
<%session("num")=Request.Form("Number")
dim a
a=session("num")
a=a+5
Response.Write(a)
%>