Hi all,
I am really new to all this, and any help with my problems would be awesome. I am working on a function that allows the user to click on a "Good" and "Bad" link, and a number next to it will count the number of times that different users have clicked on each piece of text. Here's the basic version of the code in using:
With this code standing alone, each time a user revists the page the number goes back to zero.
So my question is: How can I store the data in ASP so that when the user visits the site again, the count is restored?
I am really new to all this, and any help with my problems would be awesome. I am working on a function that allows the user to click on a "Good" and "Bad" link, and a number next to it will count the number of times that different users have clicked on each piece of text. Here's the basic version of the code in using:
Code:
<script type="text/javascript">
function add_to_goodcount(){
var goodcount=document.getElementById('goodcount');
var cstore = document.getElementById('good_counter_store');
cstore.value=parseInt(cstore.value)+1;
badcount1.innerHTML=cstore.value;
}
</script>
<a href="javascript:add_to_goodcount();">Good </a><input type="hidden" name="good_counter_store" id="good_counter_store" value='0'><span id="goodcount">0</span>
With this code standing alone, each time a user revists the page the number goes back to zero.
So my question is: How can I store the data in ASP so that when the user visits the site again, the count is restored?