What I have is a value I'm getting from a querystring that is a number. To format the number to be an integer instead of a string, I have put it in a textbox in a form. I now want to store the value from the textbox to a variable that I can pass to a cookie.
This is all nice and well except the following code doesn't work: (keep in mind I'm using VBScript as my ASP language)
<form name="myForm">
<input name="totD" type="button" value=""></input>
</form>
<%
dim newTotD
newTotD = document.forms(0).elements("totD"
.value
Response.Cookies("total"
= newTotD
Response.Cookies("total"
.Expires = DATE + 365
%>
Any help would be appreciated. Thanks.
Ryan
This is all nice and well except the following code doesn't work: (keep in mind I'm using VBScript as my ASP language)
<form name="myForm">
<input name="totD" type="button" value=""></input>
</form>
<%
dim newTotD
newTotD = document.forms(0).elements("totD"
Response.Cookies("total"
Response.Cookies("total"
%>
Any help would be appreciated. Thanks.
Ryan