Posted by admin in PHP tutorialsJun 7th, 2010 | no responses
pass javascript array to php, pass javascript variables to php, pass php variable javascript, Passing information from Javascript to PHP, Passing Javascript Variable to PHP, Passing JavaScript variables to a PHP script, passing javascript vars into php
Simple code that will help you to pass javascript to a php variable.
<script language=”javascript”>
var java= “Content from javascript”;
</script>
<?php
$php = ‘<script language=”javascript”>document.write(java)</script>’;
echo $php;
?>