
30/12/2006, 01:26
|
| | Fecha de Ingreso: diciembre-2006
Mensajes: 6
Antigüedad: 18 años, 2 meses Puntos: 0 | |
Re: problema al mostrar datos de la bbdd en un formulario Espero q esto sirva...ya sin bbdd de x medio -- provaform.php --
<html>
<head>
<title>prueba</title>
</head>
<body>
<?php
$dni=$_POST['dni'];
echo "dni: ".$dni."<hr>";
if ($enviar)
{
?>
<FORM METHOD="post" ACTION="">
<table width="450px" cellpadding="10px"; cellspacing="0" border="0" bgcolor="#abcdef" align="center">
<tr>
<td>resultado</td>
<td><?php echo"<input name=\"dni\" type=\"text\" size=\"9\" maxlength=\"9\" value=$dni>"?></td>
</tr><tr>
<td></td>
</tr>
</table>
</form>
<?php
}
else
{
?> <FORM METHOD="post" ACTION="provaform.php">
<table width="450px" cellpadding="10px"; cellspacing="0" border="0" bgcolor="#abcdef" align="center">
<tr>
<td>introduce <b> ab cd ef </b></td>
<td><?php echo"<input name=\"dni\" type=\"text\" size=\"9\" maxlength=\"9\">"?></td>
</tr><tr>
<td></td>
<td></td><td><input type="submit" name="enviar" value="Enviar"></td>
</tr>
</table>
</form><?php
}
?>
</body>
</html>
ejemplo w w w.bydol.com/empleo/provaform.php
y probad introducir: ab cd ef resultado solo sale ab
sin embargo en textarea si aparece todo ab cd ef
Última edición por bydol; 30/12/2006 a las 04:42 |