Código:
segun esto si se conecta y agrega el registro, pero consulto mysql pormedio de msdos ("select * from agenda") y me despliega: "empty(0.3 sec)" o algo asi.<?php if ($enviar) { // process form $link = mysql_connect("localhost", "root"); mysql_select_db("mydb",$db); $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"; }else{ ?> <form method="get" action="form_agrega.php"> Nombre :<input type="Text" nombre = "nombre"><br> Dirección:<input type = "Text&quo>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="Envía información"> </form> <?php } //end if ?>
que pudiera ser, cualquier ayuda les agradezco!!
saludos!!