Answers for "assign javascript value to php variable"

PHP
2

how to use javascript variable in php

<script>
var p1 = "success";
</script>

<?php
echo "<script>document.writeln(p1);</script>";
?>
Posted by: Guest on August-17-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
0

how to use php variable in javascript file

alert("color: " + color);
Posted by: Guest on October-17-2020

Code answers related to "assign javascript value to php variable"

Browse Popular Code Answers by Language