Hi,
So I'm trying to make an online game with PHP, and I want to add a highscores feature into it. To do this, I need to keep track of the players score..
Like
$myscore starts as zero, then continuously adds 1 point until it's big enough for the highscores.

My question is, how can I transfer the $myscore data from one page to another without the player being able to intercept the transfer and edit their score to hack the game?

E.G, if I put it in a GET form, they can just edit it in the URL..
If I put it in the POST form, they can use tamper data..
If I recode the game in javascript, they can edit the javascript with firebug..
If I recode the game in Java, they can download the .jar file and edit the source code with notepad.

So what can I do?

TL;DR: What's the safest way to transfer data in PHP without interception?