Tuesday, October 11, 2016

[Working Code] How to assign php variable to javascript variable

How to assign php variable to javascript variable

Assign php variable to javascript variable


<!DOCTYPE html>
<html>
<body>
<script>
var jsvar = '<?php echo $phpvar; ?>';
</script>
</body>
</html>

No comments:

Post a Comment