por gentileza corrijam este código, ele roda, mas um campo em cada registro, preciso de 03 campos em um único registro. obrigada. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Documento sem título</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <? if (@$_POST["nome_usuario"] and @$_POST["dt_emprest"] and @$_POST["dt_devol"] != null) //if (@$_POST["dt_emprest"] != null) //if (@$_POST["dt_devol"] != null) { $conexaoBD = mysql_connect("localhost") or die("Não foi possível conectar ao Mysql"); mysql_select_db("livro",$conexaoBD) or die ("Não foi possível selecionar o banco de dados"); $sqlInsercaoUsuario = "INSERT INTO t05_cadast_usuario(NOME_USUARIO,DT_EMPREST, DT_DEVOL) VALUES ('" . ($_POST["nome_usuario"]) . "') . ('" . ($_POST["dt_emprest"]) . "') . ('" . ($_POST["dt_devol"]) . "')"; //$sqldtempresta = "INSERT INTO t05_cadast_usuario(DT_EMPREST) VALUES ('" . ($_POST["dt_emprest"]) . "')"; //$sqldtdevolve = "INSERT INTO t05_cadast_usuario(DT_DEVOL) VALUES ('" . ($_POST["dt_devol"]) . "')"; mysql_query($sqlInsercaoUsuario); //mysql_query($sqldtempresta); //mysql_query($sqldtdevolve); mysql_close($conexaoBD); } else echo "não deu certo!"; ?> <form method="POST"> Nome do usuário: <input name="nome_usuario" type="text" id="text" size="50"><br><br> Data de empréstimo: <input name="dt_emprest" type="text" id="text" size="9"><br><br> Data de devolução: <input name="dt_devol" type="text" id="text" size="9"> <input type="submit" value="cadastrar"> </form> </body> </html>