So ändern Sie den JavaScript -Wert in den PHP -Wert
<script>
document.cookie = "js_var = " + This is used to chang js to php
</script>
<?php
$php_var= $_COOKIE['js_var'];
echo $php_var;
?>
Helpless Hamerkop