![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/01/2009, 13:53
|
| | Fecha de Ingreso: enero-2009
Mensajes: 142
Antigüedad: 16 años, 1 mes Puntos: 1 | |
Respuesta: gran duda con llamados desde una lista de seleccion //cargas los datos de tu base
echo '<FORM METHOD= "POST" ACTION = "actualizar2.php">NOMBRE<br>';
$sSQL="Select item From tabla ";
$result=mysql_query($sSQL);
echo '<select name = "nombre">';
while ($row=mysql_fetch_array($result)){
echo '<option>'.$row["item"];
}
?>
</select><br>
<table border = 5 align = "center">
<tr>
****aqui envio los datos que quieres modificar****
<th>fecha_nacimiento<br></th>
<th> <INPUT TYPE = "TEXT" NAME = "fecha_nacimiento"><br></th>
</tr>
</table>
<th><INPUT TYPE="SUBMIT" value="Actualizar"></th>
</FORM>
//aqui recives los datos y actualizas
$sSQL="Update tabla Set fecha_nacimiento = '$_POST[fecha_nacimiento]', apellido_paterno = '$_POST[apellido_paterno]'Where item = '$_POST[item]'";
el codigo deberia ser similar a esto ojo que esto esta por formulario |