I have several variables (username,game_id,...) in my PHP script
I would like to send an Ajax request with those variables in construct:
How can I pass my variables from my PHP to the js file ?
I tried to generate my variables like that :
<?php echo 'username="'.$user->id.'";';?>
but it doesn't work ..
any idea ?