krishna vala

krishna vala

  • 1.7k
  • 278
  • 32.1k

How to store javascript value into php variable

Aug 12 2018 1:12 PM
<html>
<SCRIPT language="JavaScript">
var q1=Math.floor(Math.random()*11)
<?php
$ff = q1;
?>
}
</SCRIPT>
</HEAD>
<BODY>
<?php
echo $ff ;
?>
</body>
</html>
 
This is not working. What to do? 

Brought to you by: JavaScript SDK for Bold BI dashboard and analytics embedding. Free trial.

Answers (2)