Answers for "make php variable from js"

PHP
10

using js variable in php

<script type="text/javascript">
var abc= 'this is text';
<?php $abc = "<script>document.write(abc)</script>"?>   
</script>
<?php echo $abc;?>
Posted by: Guest on June-10-2020
6

js var to php

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

Code answers related to "make php variable from js"

Browse Popular Code Answers by Language