1
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 wish to send a variable js together to form fields, for such, tried:
<?php
$variavel_php ="<script>document.write(variavel_java_script)</script>";
?>
and in 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>
need to pass the integer value contained in the js variable.
Using jquery, from what I saw I would have to redo the whole form, it is not my intention,
1)there is a way to pass (force) the integer value to php variable and open it in a new page??
2)there is a method of passing the js variable in the form action??
Thank you very much!! solved!
– Daniel Gomes Da Silva Moreira