Send information from one form to another form

0

I am trying to send information with hidden inputs of a result that I get from my query to another form, if I see the information but by clicking on the send button in the second form, the input information does not appear, I leave my code to see if you can help me, this is the code of the form where I want to see the info:

<td><label for="">NOMBRE COMPLETO:</label></td>
            <td><input class="estilo" type="text" value="<?php echo $txtnombre; ?>" name="txtnombre" id="txtnombre" placeholder=""></td>
            </tr>
            <tr>
            <td><label for="">ID USUARIO:</label></td>
            <td><input class="estilo" type="text" value="<?php echo $txtusuario; ?>" name="txtusuario" id="txtusuario" placeholder=""></td>
            </tr>
            <tr>

and here is the code of the hidden input that should send the info to the other form:

<td style="text-align: center;"><?php   echo $ver[1] ?></td>
                <td style="text-align: center;"><?php   echo $ver[2] ?></td>
                <td style="text-align: center;"><?php   echo $ver[4] ?></td>
                <td style="text-align: center;"><?php   echo $ver[5] ?></td>
                <td>

                <form action="" method="POST">
                <input type="hidden" name="txtnombre" value="<?php   echo $ver[1] ?>">
                <input type="hidden" name="txtusuario" value="<?php   echo $ver[2] ?>">
                <input type="hidden" name="txtdepto" value="<?php   echo $ver[4] ?>">
                <input type="hidden" name="txtuser" value="<?php   echo $ver[5] ?>">

                <input type="button" value="seleccionar" name="accion">

                </form>
    
asked by Xavi 06.11.2018 в 18:39
source

1 answer

0

You need to modify your label from:

<form action="" method="POST">

a:

<form action="Formulario2.php" method="POST">

the action property tells you where the form information will be sent.

    
answered by 07.11.2018 в 19:58