Posts by Ryan • 1 point
1 post
- 
		0 votes5 answers45121 viewsA: How to use a PHP variable in javascript?tbm can try like this <?php $nameemphp = "Ola mundo"; echo "<script>var nameemjs = '".$nameemphp."';</script>"; ?> It assigns a php variable to a variable in javascript, using…