Ver Mensaje Individual
  #1 (permalink)  
Antiguo 08/05/2008, 08:36
Avatar de ACX_POISON
ACX_POISON
 
Fecha de Ingreso: abril-2008
Ubicación: Talca-Chile
Mensajes: 750
Antigüedad: 16 años, 1 mes
Puntos: 7
Exclamación ayuda form + vista previa

Gracias X leerlo

amigos tengo un formulario para de ingreso de datos para una noticia, entre los datos que necesitan se ingresados hay una imagen que se solicita con un input file, todo va bien luego recolecto los datos enviados por "$_POST" a la misma pagina y muestro un resumen de los datos ingresados, el problema es que en la parte de mostrar una miniatura de la imagen no la muestra solo muestra un recuendro con una x en la esquina .

-¿como hago que se vea esta imagen en la miniatura?

este es el codigo

noticia.php

Cita:
<html>
<body>
<?
if($_POST)
{
include("../../../funciones/funcion.php");
extract($_POST);
$error=0;
//var_dump(empty($fbreve));
//var_dump(empty($fnoticia));

if(empty($fbreve))
{
$error=1;
}
if(empty($fnoticia))
{
$error=2;
}
if((empty($fnoticia))and(empty($fbreve)))
{
$error=3;
}


if($error==0)
{

$fautor=str_inde($fautor,"Anonimo");
$ftitulo=str_inde($ftitulo,"Sin Titulo");
$fbreve=str_inde($fbreve);
$fnoticia=str_inde($fnoticia);
$fimagen=strip_tags($fimagen);

$src='src="'.$fimagen.'"';


echo"$fimagen <br>$src";

echo'
<div id="Layer2">
<form action="nueva2.php" method="post" name="frmX" id="frmX">
<table width="365" height="280" border="0">
<tr>
<td colspan="2"><div align="center">Confirnacion de datos Ingresados </div></td>
</tr>
<tr>
<td width="170"><strong>Fecha:</strong></td>
<td width="185">'.$fdia.'/'.$fmes.'/'.$fano.'
<input name="ocu_fecha" type="hidden" id="ocu_fecha" value="'.$fdia.'/'.$fmes.'/'.$fano.'" /></td>
</tr>
<tr>
<td><strong>Autor:</strong></td>
<td>'.$fautor.'
<input name="ocu_autor" type="hidden" id="ocu_autor" value="'.$fautor.'" /></td>
</tr>
<tr>
<td><strong>Titulo:</strong></td>
<td>'.$ftitulo.'
<input name="ocu_titulo" type="hidden" id="ocu_titulo" value="'.$ftitulo.'" /></td>
</tr>
<tr>
<td><strong>Breve:</strong></td>
<td>'.$fbreve.'
<input name="ocu_breve" type="hidden" id="ocu_breve" value="'.$fbreve.'" /></td>
</tr>
<tr>
<td><strong>Noticia</strong></td>
<td><label>
<textarea name="noticia" rows="8" disabled="disabled" id="noticia">'.$fnoticia.' </textarea>
<input name="ocu_noticia" type="hidden" id="ocu_noticia" value="'.$fnoticia.' " />
</label></td>
</tr>
<tr>
<td><strong>Imagen:</strong></td>
<td><img '.$src.' alt="imagen" width="50" height="50" /></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<label>
<input type="submit" name="Submit3" value="Continuar&gt;&gt;" />
</label>
</div></td>
</tr>
</table>
</form>
</div>';

}
elseif($error==1)
{
echo'
<div id="Layer3"><img src="../../BAses/Images/X.jpg" alt="No Valido" width="46" height="32" /></div>';
}
elseif($error==2)
{
echo'
<div id="Layer4"><img src="../../BAses/Images/X.jpg" alt="No Valido" width="46" height="32" /></div>';
}
elseif($error==3)
{
echo'<div id="Layer3"><img src="../../BAses/Images/X.jpg" alt="No Valido" width="46" height="32" /></div>
<div id="Layer4"><img src="../../BAses/Images/X.jpg" alt="No Valido" width="46" height="32" /></div>';
}



}
?>

</body>
</html>
GRacias ----->