krishna vala

krishna vala

  • NA
  • 290
  • 72.6k

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? 

Answers (2)