Ver Mensaje Individual
  #7 (permalink)  
Antiguo 12/11/2007, 06:59
francibj
 
Fecha de Ingreso: noviembre-2007
Mensajes: 51
Antigüedad: 16 años, 5 meses
Puntos: 0
Re: por que no funciona???

Lo modifique así pero sige sin funcionarme.

<head>
<?PHP
$conexion = mysql_connect("localhost","root","asge");
mysql_select_db("telefonos",$conexion);

$sql = "INSERT INTO telefonos_datos ('NOMBRE','EXTEN_MOVIL','TLFNO','CABEZA_DE_GRUPO') ";

$sql .= "VALUES ('".$nombre."', '".$extension."', '".$telefono."', '".$cabeza_grupo."')";

$result = mysql_query($sql );

if (mysql_query($sql)){
// comprobamos que se haya pulsado el boton insertar del formulario
if( isset($_POST["Insertar"]) )
{
//sql

... $_POST["meter_datos.php"];
}
else
{
// formulario

<input type="text" name="nombre" />
}

?>
</head>
<style type="text/css">
<!--
.Estilo1 {
font-size: 24px;
font-weight: bold;
}
-->
</style>
</head>
<body>

<form>
<p><span class="Estilo1">Introduzca un nuevo dato</span></p>

<p align="center">Nombre y apellidos
<input type="text" />
</p>
<p align="center">Extension
<input type="text" />
</p>
<p align="center">Telefono
<input type="text" />
</p>
<p align="center">Cabeza de grupo
<input type="text" />
<p align="center">
<label>
<input type="submit" name="Insertar" id="Insertar" value="insertar" />
</label>

<a href="trabajo php/USUARIOS.html">VOLVER</a>
</form>
</html>
</body>
Llevo con esto mas de una semana y sigo sin resolverlo...