Results 1 to 3 of 3

Thread: cookie?

  1. #1
    Join Date
    Jan 2009
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default cookie?

    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?

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Please post a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jun 2008
    Posts
    589
    Thanks
    13
    Thanked 54 Times in 54 Posts
    Blog Entries
    1

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •