PDA

View Full Version : cookie?



kat32
02-18-2009, 01:40 PM
i have 2 input form, first number and second number. if i will click the add button, it will multiply the two numbers. then if I input again another 2 numbers

for example: I entered 2 and 1, the computer will display 2 and 1 then the product of the 2 numbers which is 2 when I click the add button.
2*1=2
total=2
then when I input again 2 numbers 2 and 4, the computer will display, then the computer will computer the total product
2 * 1 =2
2 * 4= 8
total=10

and so on..
do I need to use cookie?

jscheuer1
02-18-2009, 05:24 PM
Please post a link to the page on your site that contains the problematic code so we can check it out.

magicyte
02-19-2009, 12:05 AM
That depends if you want that stuff to stay there after the user has wandered off from the page... If you want it to stay there when they aren't viewing the page, use a cookie. If you just want to display it for the duration of the pages visit, you will not need a cookie. There is your answer.