SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: preven session score to add up when page is refreshed

  1. #1
    SitePoint Evangelist dscriptor's Avatar
    Join Date
    Oct 2005
    Location
    in front of my computer
    Posts
    571
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question preven session score to add up when page is refreshed

    hi all,

    i have a online exam pages.

    i store the score in session variable to pass the score from 1 page to another...

    but the problem is when the page is refreshed, the score session variable adds up...

    how can i prevent this?

    please help...thanks!
    happy is the man that finds wisdom....wisdom in {PHP}.


  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Set another variable at each stage of the form recording that the step's been completed, and check before adding. Or store the scores from each step separately and add them up at the end.
    17-29% of paid ad clicks are fraudulent. Get protected with Improvely, your online marketing dashboard.
    Conversion tracking, click fraud detection, A/B testing and more.

  3. #3
    SitePoint Evangelist dscriptor's Avatar
    Join Date
    Oct 2005
    Location
    in front of my computer
    Posts
    571
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok thanks.!
    happy is the man that finds wisdom....wisdom in {PHP}.


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
  •