Skip to content

PHP code snippet – How to use variable in javascript file?

var p1 = "success";

echo "<script>document.writeln(p1);</script>";
See also  Python code snippet - How to set the location on a pygame window?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.