Form does not pass data via POST

1

I have the following excerpt:

<html>
<form name="sai_frm_incl_patr" method="post" action="sai_incl_peri_seri_patr.php">
    <body>  
    <table border="0" width="100%">
        <tr>
            <td colspan="3" bgcolor="Silver" align="center">    
            <b><font face="arial" color="blue" size="2">Inclusão de Patrimônio e serial</font>
            </td>
        </tr>
        <tr>
            <td>
                <input type="hidden" id="id_pat" name="w_patr_seri"  value="aaaaa">                 
            </td>
        </tr>
    </table>
</body>
</form>
</html>

And on the page that is receiving the data I do this:

<?php
$w_patr = trim($_POST['w_patr_seri']); 
?>

But the variable does not contain any content! What must be the mistake? Or what am I doing wrong? '

    
asked by anonymous 06.10.2014 / 15:53

1 answer

5
  

You opened and closed form out of body

    <html>
       <body>
            <form name="sai_frm_incl_patr" method="post" action="sai_incl_peri_seri_patr.php"> 
            <table border="0" width="100%">
                <tr>
                    <td colspan="3" bgcolor="Silver" align="center">    
                    <b><font face="arial" color="blue" size="2">Inclusão de Patrimônio e serial</font>
                    </td>
                </tr>
                <tr>
                    <td>
                        <input type="hidden" id="id_pat" name="w_patr_seri"  value="aaaaa">                 
                    </td>
                </tr>
            </table>
            </form>
        </body>   
    </html>
    
06.10.2014 / 16:02