Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to change javascript value to php value

<script> 
  document.cookie = "js_var = " + This is used to chang js to php 
</script>
<?php
    $php_var= $_COOKIE['js_var'];
	echo $php_var;
?>
 
PREVIOUS NEXT
Tagged: #change #javascript #php
ADD COMMENT
Topic
Name
2+1 =