Os dejo el código del html y del php que lo inserta.
Código HTML:
Ver original
<meta http-equiv="content-type" content="text/html;charset=utf-8" /> <link href="estilo.css" type="text/css" rel="stylesheet" /> </head> <div id="todo"> <div id ="contenedor"> <div id ="cabecera"> <div id="logo"> <ul> </ul> </div> </div> <div id="menu"> <div id="menu"> <ul> </ul> </div> </div> <div id ="panel"> </div> <div id ="contenido"> <form action="reg.php" method="post" name="datos"> <table> <tr> <form action="reg.php" method="post" name="datos"> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> <tr> </tr> </table> </form> </table> </div> </div> </div> </body> </html> </body> </html>
Código PHP:
Ver original
<?php /* CONECTAR CON BASE DE DATOS **************** */ /* ********************************************** */ /* CONECTA CON LA BASE DE DATOS **************** */ /* ********************************************** */ //REALIZAR CONSULTA $sql = "INSERT INTO usuarios(id_usuario, nombre, nick, apellidos, email, contrasena) VALUES ( '".NULL."', '".$_POST['nombre']."', '".$_POST['nick']."', '".$_POST['apellidos']."', '".$_POST['email']."', '".$_POST['contrasena']."' )"; if (! $result){ }else {echo "<center><font color='RED'>DATOS INSERTADOS CORRECTAMENTE</font><a ref=/paginas/prueba/index.html>Volver</a>'"; } ?>
Gracias a todos por adelantado