MySqlデータベースに保存cnt1
したい。tim
Javascript はクライアント側であり、PHP はサーバー側であり、利用可能なオプションはPOST GET
andCOOKIE
メソッドを使用することであることを理解しています。しかし、私のコードでは適用できないようです。
これは実際にはhttp://www.hscripts.com/scripts/jquery/memory-game.phpのメモリ ゲームです。ゲームをプレイするには、リンクはhttp://www.hscripts.com/scripts/jquery/memory-です。 game.php。かかる時間と手数を節約したい。
何かアドバイス?よろしくお願いします。
function finish()
{
var cnt1 = $("#counting").val();
var tim=$("#timecount").val();
alert("Congratulations! You have won the game Total Move : "+cnt1+" Time : "+tim+" seconds");
if(confirm("Do you want to play again"))
{
stopCount();
window.location.href="index.php";
}
else
{
window.location.href="leaderboard.php";
}
}