<?php
$browsers ="<script>document.write(userbrowser)</script>";
echo $browsers;
?>
Where userbrowser is a javascript variable
<script> var myJavascriptVar = '123456'; document.cookie = "myJavascriptVar = " + myJavascriptVar </script> <?php echo $myPhpVar= $_COOKIE['myJavascriptVar']; ?>
0 Comments