Ver Mensaje Individual
  #9 (permalink)  
Antiguo 28/01/2011, 16:04
hazukisensei
 
Fecha de Ingreso: enero-2011
Mensajes: 20
Antigüedad: 13 años, 3 meses
Puntos: 0
Respuesta: Como hago llegar los datos del formulario a la BD

La tabla es esta:

<form id="form1" name="form1" method="post" action="verificar.php">
<table width="100%" border="0" align="center">
<tr>
<td>NAME:</td>
<td><label for="name"></label>
<input name="name" type="text" id="name" size="31" /></td>
</tr>
<tr>
<td>EMAIL:</td>
<td><input name="email" type="text" id="email" size="31" /></td>
</tr>
<tr>
<td colspan="2"><input type="submit" name="button" id="button" value="Sign Up" /></td>
</tr>
</table>
</form>




he cambiado el codigo por este otro, conecta bien pero no llega el registro a la BD.

$conexión = mysql_connect("localhost","root","password");
mysql_select_db("registro_us",$conexión);

$rst_usuarios=mysql_query("SELEC * FROM usuarios WHERE name='". $_POST["name"] ."' and email='". $_POST["email"] ."';",$conexión);

header("Location:index.html");

mysql_close($conexión);