I am making a game for my computing class. The user has to change settings of their robot before playing.
As the settings file where the user customises their robot is a separate PHP file I was wondering if there was a way to assign the $_SESSION variables to JavaScript variables like so:
var tractionType = <?php echo $_SESSION['traction']; ?>;
...
Is this possible?