Ver Mensaje Individual
  #32 (permalink)  
Antiguo 14/12/2006, 15:30
Avatar de byweb
byweb
 
Fecha de Ingreso: marzo-2006
Ubicación: Lucena (Cordoba)
Mensajes: 36
Antigüedad: 18 años, 8 meses
Puntos: 0
Re: Subir Imagenes en Noticias

Sigue sin mostrarme la fotografia en el formulario aquí posteo el codigo lo pege 4 veces y nada. No se si vos , veis el fallo.
Código HTML:
<html>
<head>
<title>ENVIO DE NOTICIAS POR Gino'FL</title>
</head>

<body>

<form name="form1" action="creanoticia.php" method="post"enctype="multipart/form-data">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr>
<td width="25%">&nbsp;</td>
<td width="50%" colspan="2">
<p align="center"><font color="#FF0000" size="5"><b>ENVIÓ DE NOTICIAS</b></font></td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">Titulo de Noticia</td>
<td width="25%">
<input type="text" name="titulo" size="17"></td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">Mensaje</td>
<td width="25%" rowspan="6">
<textarea name="mensaje" cols="25" rows="7"></textarea></td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%" rowspan="6" valign="middle">
<p align="center">
<img src="fotos/noimagen.jpg" name="imagen" width="200" height="150" class="cajatexto1"></td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">
<p align="center">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">Buscar Imagen</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">
<input name="userfile" type="file" class="cajatexto1" onChange="muestra()" size="16" style="float: left">
<input type="hidden" name="MAX_FILE_SIZE" value="100000"></td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%" valign="top">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
<td width="25%">&nbsp;</td>
</tr>
<tr>
<td width="25%">&nbsp;</td>
<td width="50%" colspan="2">
<p align="center">
<input name="grabar" type="submit" class="cajatexto1" value="Enviar Datos" style="font-weight: bold">&nbsp;
<input type="reset" value="Cancelar" style="font-weight: bold"></td>
<td width="25%">&nbsp;</td>
</tr>
</table>

</form>

</body>

</html>
<script language="javascript">
function muestra()
{
document.form1.imagen.src=document.form1.userfile. value;
}
</script> 
__________________
byweb Soluciones Multimedia