How do I receive a string in JS (maybe through an alert) without the user being able to see it beforehand (e.g. in the source code)? You probably know this from Geocaching Checkers, how do they secure the real Coordinates from being seen in the source code or wherever? I have a web server and some basic JS and HTML understanding, I read about PHP and AJAX but I didn't found the solution to my problem yet. My objective is to reveal a information only if the user completed a condition on my website, and its vital that it's not seen before. I tried using a separate PHP file:
<?php
$koords = "N 53° 13.869 E 10° 22.716";
?>
but how do i reciev this variable in JS and can the php file be seen by the user?