 
			
				26/03/2009, 15:36
			
			
			     |  
      |    |    |    Fecha de Ingreso: febrero-2006  
						Mensajes: 155
					  Antigüedad: 19 años, 8 meses Puntos: 0     |        |  
  |      Respuesta: Mostrar datos en textarea        este es mi codigo html    
<?php  
$cedula= addslashes($_POST['cedula']);  
$con = mysql_connect("localhost","root","");  
mysql_select_db("empleados",$con);   
$query = mysql_query("SELECT * FROM datospersonales WHERE cedula='$cedula';");  
$rowalum = mysql_fetch_assoc($query)  
?>    
<form id="form1" name="form1" method="post" action="">  
  <table width="257" border="1">  
    <tr>  
      <td width="86">cedula:</td>  
      <td width="155" bgcolor="#333333"><label></label></td>  
      <td width="155"><input name="cedula" type="text" id="cedula" value="<?php echo $rowalum['cedula']; ?>"/></td>  
    </tr>  
    <tr>  
      <td>nombre:</td>  
      <td><label>  
        <input name="nombre" type="text" id="nombre" value="<?php echo $rowalum['nombre']; ?>" />  
      </label></td>  
      <td bgcolor="#000000"> </td>  
    </tr>  
    <tr>  
      <td>apellido:</td>  
      <td bgcolor="#000000"><label></label></td>  
      <td><input name="apellido" type="text" id="apellido" value="<?php echo $rowalum['apellido']; ?> " /></td>  
    </tr>  
    <tr>  
      <td>sexo</td>  
      <td><label>  
       <textarea name="observaciones" cols="100" rows="5" id="observaciones" tabindex="16" value="<?php echo $rowalum['especifique2']; ?>"></textarea>      </label></td>  
      <td bgcolor="#000000"> </td>  
    </tr>  
  </table>  
</form>  
<?php  
mysql_free_result($query);?>     
				__________________  Gabriel T. Ballesteros           |