Answers for "affect javascript variable to php"

PHP
5

js var to php

<script>
   var res = "success";
</script>
<?php
   echo "<script>document.writeln(res);</script>";
?>
Posted by: Guest on February-10-2020
0

how to use php variable in javascript file

<?php
$bool = false;
$num = 3 + 4;
$str = "A string here";
?>
Posted by: Guest on October-17-2020

Code answers related to "affect javascript variable to php"

Browse Popular Code Answers by Language