Skip to content

PHP code snippet – How to change javascript value to value?

<script> 
  document.cookie = "js_var = " + This is used to chang js to php 
</script>
<?php
    $php_var= $_COOKIE['js_var'];
	echo $php_var;
?>
See also  Python code snippet - How to get the parent class using super ?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.