Answers for "call php variable from javascript"

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

javascript access php variable

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

<?php
echo "<script>document.writeln(p1);</script>";
?>
Posted by: Guest on August-05-2019

Code answers related to "call php variable from javascript"

Browse Popular Code Answers by Language