Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to use javascript variable in php

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

<?php
echo "<script>document.writeln(p1);</script>";
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #variable #php
ADD COMMENT
Topic
Name
7+4 =