Ver Mensaje Individual
  #13 (permalink)  
Antiguo 08/11/2010, 13:17
vasco_acosta
 
Fecha de Ingreso: noviembre-2010
Mensajes: 29
Antigüedad: 13 años, 6 meses
Puntos: 0
Grax Amigaso eres a todo dar Cuidate Y saludos Bye me sirvio de mucho.............
Para al rato te mando mis otras dudas es mentira grax eeeeee Muchisimas gracias en lo que te pueda ayudar y esta en mis manos te apoyaria por lo menos socialmente adios

No amigo no me salio no se donde esta el error ojala me digas para corregirlo sale ahi te va mi codigo:

-----------Formulario en a.php------------------
<form action="b.php" method="post">
<table width="257" border="2">
<tr>
<th width="58" scope="col">Nombre :</th>
<th width="144" scope="col"><input type="text" name="a" /></th>
<th width="31" scope="col">&nbsp;</th>
</tr>
<tr>
<th scope="row">Edad:</th>
<th scope="row"><label>
<input type="text" name="edad" id="edad" />
</label></th>
<td>&nbsp;</td>
</tr>
<tr>
<th scope="row">Sexo :</th>
<th scope="row"><label>
<input type="text" name="sexo" id="sexo" />
</label></th>
<td>&nbsp;</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th scope="row"><input type="submit" value="Parte I &quot;Registrarme&quot;" /></th>
<td>&nbsp;</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th scope="row">&nbsp;</th>
<td>&nbsp;</td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<th scope="row">&nbsp;</th>
<td>&nbsp;</td>
</tr>
</table>
</form>

-----------------Este es el otro (b.php)--------------

<?php
session_start();
$_SESSION['a'] = $_POST['a'];
$_SESSION['edad'] = $_POST['edad'];
$_SESSION['sexo'] = $_POST['sexo'];
?>
<form action="prueba de insercion por partes.php" method="post">
<table width="241" border="2">
<tr>
<th scope="col">Usuario:</th>
<th scope="col"><input type="text" name="b" /></th>
</tr>
<tr>
<th scope="row">Password :</th>
<td><label>
<input type="text" name="password" id="password">
</label></td>
</tr>
<tr>
<th scope="row">&nbsp;</th>
<td><input type="submit" value="Finalizar" /></td>
</tr>
</table>
</form>

---------------------y este es el otro (prueba de insercion por partes.php)-------------------
<?php
$host="localhost";
$user="vasco";
$password="vasco";
$db="bolsati";
$enlace=mysql_connect($host,$user,$password);
mysql_select_db($db,$enlace);
$sql = "INSERT INTO agregar (nombre,edad,sexo,usuario,password) VALUES('".$_POST['a']."','".$_POST['edad']."','".$_POST['sexo']."',,'".$_POST['b']."','".$_POST['password']."')";

mysql_query($sql,$enlace);
echo '<script type="text/javascript">
alert("Los datos han sido guardados exitosamente...");
</script>';
echo "<br><br>";
?>

Cual es mi error ayudame si andale os espero que si!!!

Última edición por GatorV; 09/11/2010 a las 15:06