Jump to content

Shaun-AmazeWiz

New Members
  • Posts

    6
  • Joined

  • Last visited

Shaun-AmazeWiz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hey everyone, I have fixed the problem I ended up using my session idea. Each time a user clicks the button it sends a request to a page which has a session within it, the session contains a value of 0 and gets 1 added each time they have clicked the button. This also happens in jQuery so I can show the user how many clicks they have done so far. If the user leaves the page the session will be unset and also if the user wants to submit there score/clicks then this also unsets the session while adding the record to the database. - You know when you look at something you have figured out and then think, that should not have been so hard to do... Yeahhh - Thanks everyone by the way
  2. Yes that could be done very easily but I would prefer if possible not too send a request to the server each time one user clicks on the button because if I said say 10 users online clicking to button pretty quickly then that's going to be a lot of requests being sent to the server. But ass well I want to user to be able to click as many times as they want on the button too.
  3. Yes that is true, if i do it within a session with the txt file idea that would work wouldn't it. (if you understand what I mean), I am not the best at explain what I am trying to do sorry for that. onclick counter value = value++ when they have finished (no timer - upto the user to finish) the final value will get stored in the database
  4. I was just thinking.. Could I do something like each user that starts clicking, use a php session that creates a temp txt file on the server that also gets +1 added too it, that can be how I can verify it, would that work?
  5. Okay, hello everyone, I am making a little side project at the minute but before I can really get stuck in and get cracking on it I have come into somewhat of a problem. Within my code I will be letting a user click a button as many times as they want with that they will be adding +1 to a count variable.(Each time they click their "score" will go up by 1) (Something like you would see in a little game.). Am am using jQuery to achieve this. The problem I would have is that the user could just cheat by changing the value of said variable then when it gets sent to the server it would be saved as their own value. How if possible would I go about making each click verified so to speak. Would I have to send each click to the server to be verified or is there an easier way of doing this and I just cannot see it. Hope you understand to question. Thanks -Shaun
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.