hola alguien me podria ayudar gracias de antemano
bien el problema lo tengo al insertar datos en una tabla.
este es el codigo del formulario
<html>
<head>
<title>registrar usuarios</title>
</head>
<body bgcolor = "#303030">
<body text = "#e5e5e5">
<body leftmargin = "50">
<body topmargin = "50">
<font face = "tahoma" size = "2">
<font size="4">formulario para registrarse en el portal</font>
<hr size = "9" color = "ffffff" width = "60%" align = "left">
<form name="formregis" action= "registro.php" method="post">
Nombre: <input type="text" name="nombre" size="31">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Apellidos: <input type="text" name="apellidos" size = "30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Edad: <input type="text" name="edad" size ="33">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Localidad: <input type="text" name="localidad" size "30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Provincia: <input type="text" name="provincia" size ="30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
E-mail: <input type="text" name = "email" size = "32">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Telefono: <input type="text" name ="telefono" size = "30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
<input name="Envia" type="submit"value="Enviar"size="30">
<hr size = "9" color = "ffffff" width = "60%" align = "left">
</form>
</body>
</html>
y este el que procesa los datos php
<?
$host="localhost";
$usuario="mi_user";
$password="mi_pass";
$connect=mysql_connect($host,$usuario,$password);
mysql_select_db("registro", $connect);
$result = mysql_query("insert into usuarios (nombre, apellidos, edad, localidad, provincia, email, telefono) values ('$nombre','$apellidos', '$edad','$localidad', '$provincia', '$email','$telefono')", $connect);
?>
la base de datos la llamo registro y la tabla usuarios
el problema que tengo es que miro desde la linea de comando y
me crea el id pero las celdas con los datos me aparecen vacias nombre, apellidos etc.
bien el problema lo tengo al insertar datos en una tabla.
este es el codigo del formulario
<html>
<head>
<title>registrar usuarios</title>
</head>
<body bgcolor = "#303030">
<body text = "#e5e5e5">
<body leftmargin = "50">
<body topmargin = "50">
<font face = "tahoma" size = "2">
<font size="4">formulario para registrarse en el portal</font>
<hr size = "9" color = "ffffff" width = "60%" align = "left">
<form name="formregis" action= "registro.php" method="post">
Nombre: <input type="text" name="nombre" size="31">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Apellidos: <input type="text" name="apellidos" size = "30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Edad: <input type="text" name="edad" size ="33">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Localidad: <input type="text" name="localidad" size "30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Provincia: <input type="text" name="provincia" size ="30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
E-mail: <input type="text" name = "email" size = "32">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
Telefono: <input type="text" name ="telefono" size = "30">
<hr size = "2" color = "ffffff" width = "30%" align = "left">
<input name="Envia" type="submit"value="Enviar"size="30">
<hr size = "9" color = "ffffff" width = "60%" align = "left">
</form>
</body>
</html>
y este el que procesa los datos php
<?
$host="localhost";
$usuario="mi_user";
$password="mi_pass";
$connect=mysql_connect($host,$usuario,$password);
mysql_select_db("registro", $connect);
$result = mysql_query("insert into usuarios (nombre, apellidos, edad, localidad, provincia, email, telefono) values ('$nombre','$apellidos', '$edad','$localidad', '$provincia', '$email','$telefono')", $connect);
?>
la base de datos la llamo registro y la tabla usuarios
el problema que tengo es que miro desde la linea de comando y
me crea el id pero las celdas con los datos me aparecen vacias nombre, apellidos etc.