I want to get the variável
of the vetor
that I create in the JS
and store the contents of it in one of PHP
.
<?php
print("<SCRIPT language=javascript>
vetor_dados[$cont] ="text";
</SCRIPT>");
$conteudo = vetor_dados;
?>
How should I do it?
Note: The way to use the, eg:
<script type="text/javascript">
var x = 'valor';
</script>
<?php
$x = "<script>document.write(x)</script>";
echo $x;
?>
Causes $x
to show < script>document.write(x)</script>
and not JS
;
Image as it appears in the form above: