I need to pass a value from javascript to php. How can i achieve this since one runs on client side and other on server? or any other alternatives for this to happen? I am a newbie in programming, so correct and suggest me if i am wrong.
<html>
<head>
<SCRIPT language="JavaScript">
var q1=Math.floor(Math.random()*11)
<?php
$ff = q1;
?>
</SCRIPT>
</head>
<body>
<?php
echo $ff ;
?>
</body>
</html>