Simple code that will help you to pass javascript to a php variable.
<script language=”javascript”>
var java= “Content from javascript”;
</script>
<?php
$php = ‘<script language=”javascript”>document.write(java)</script>’;
echo $php;
?>
Simple code that will help you to pass javascript to a php variable.
<script language=”javascript”>
var java= “Content from javascript”;
</script>
<?php
$php = ‘<script language=”javascript”>document.write(java)</script>’;
echo $php;
?>