Hi,

Would you please help me how to store a value from java script into php variable?

<SCRIPT language="JavaScript">
var q1=Math.floor(Math.random()*11)
<? php $q1v = q1 ; ?>
</SCRIPT>

echo $q1v

Thanks.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.