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