Tema: Que falla
Ver Mensaje Individual
  #17 (permalink)  
Antiguo 11/11/2005, 07:08
sonydei
 
Fecha de Ingreso: junio-2005
Mensajes: 37
Antigüedad: 18 años, 9 meses
Puntos: 1
lo he dejado asi
<html>
<body>
<?php
if ($enviar) {
// process form

$nombre = $_REQUEST['nombre'];
$direccion = $_REQUEST['direccion'];
$telefono = $_REQUEST['telefono'];
$email = $_REQUEST['email'];

$link = mysql_connect("localhost", "xxxxxx", "x");
mysql_select_db("$mydb",$link);
$sql = "INSERT INTO agenda (nombre, direccion, telefono, email) ";
$sql .= "VALUES ('$nombre', '$direccion', '$telefono', '$email')";
$result = mysql_query($sql);
echo "¡Gracias! Hemos recibido sus datos.\n";

?>

<form method="post" action="hola.php">

Nombre :<input type="Text" name="nombre"><br>

Dirección:<input type="Text" name="direccion"><br>

Teléfono :<input type="Text" name="telefono"><br>

E-mail :<input type="Text" name="email"><br>

<input type="Submit" name="enviar" value="Aceptar información">

</form>

<?php

} //end if

?>

</body>

</html>

pero ahora si voy a la pagina www.digitalspc.com/hola.php
no sale nada uff estoy liado
__________________
juegos friv