Answers for "javascript variables to php"

PHP
3

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
10

javascript php variable

<script type="text/javascript">
   var php_var = "<?php echo $php_var; ?>";
</script>
Posted by: Guest on March-20-2020
0

none

<script type="text/javascript">
   var php_var = "<?php echo $php_var; ?>";
</script>
Posted by: Guest on March-20-2020

Code answers related to "javascript variables to php"

Browse Popular Code Answers by Language