Hello, I have a simple form with some fields, which I send the values to another page via form action:
<form class="form-horizontal" action="novapagina.php" enctype="multipart/form-data" method="post" >
I would like to send a js variable together to the form fields, for this, I tried:
<?php
$variavel_php ="<script>document.write(variavel_java_script)</script>";
?>
and no form action:
<form class="form-horizontal" enctype="multipart/form-data" action="novapagina.php?id=<?php echo $variavel_php; ?>" method="post" >
so the value of the variable on the page you receive is the string: <script>document.write(variavel_java_script)</script>
I need to pass the integer value contained in the js variable.
Using jquery, so vi would have to redo the whole form, it is not my intention,
1) Is there a way to pass (integer) the integer value to php variable and open it in a new page ??
2) Is there a method of passing the variable js in the form action ??