<?php$data = $_POST['algo'];?><script type="text/javascript">var algo = <?php echo $data; ?>;</script>