Ver Mensaje Individual
  #11 (permalink)  
Antiguo 01/01/2012, 04:51
jmabreu
 
Fecha de Ingreso: julio-2010
Mensajes: 197
Antigüedad: 13 años, 9 meses
Puntos: 32
Respuesta: Insertar imagen en base de datos

codigo HTML



<table width="1024" border="0" align="center">
<tr>
<td width="49"><span class="style1">
<img src="img_btn/<?php if(!empty($error)){echo 'cancelar';}elseif(!empty($respuesta)){echo 'acept';}else{echo '';}?>.png" width="<?php if(!empty($error)){echo '48';}elseif(!empty($respuesta)){echo '48';}else{echo '0';}?>" height="<?php if(!empty($error)){echo '48';}elseif(!empty($respuesta)){echo '48';}else{echo '0';}?>" /></span></td>
<td width="965"><span class="style1">
<?php if(!empty($error)){echo 'Error: este formato no es permitido';}elseif(!empty($respuesta)){echo 'Su archivo se ha enviado exitosamente';}else{echo '';}?>
</span></td>
</tr>
</table>





<table width="60%" border="0" align="center">
<tr>
<td><span class="style1">Tamaño maximo Permitido 1.99 MB</span><br />
<form action="<?php echo $editFormAction; ?>" method="post" enctype="multipart/form-data" name="form1" id="form1">
<label for="imagen"></label>
<table width="100%" border="0">
<tr>
<td width="50%"><div align="center" class="style1">1. Seleccione la imagen</div></td>
<td width="50%"><div align="center" class="style1">2. Nombre de la imagen</div></td>
</tr>
<tr>
<td><div align="center">
<input name="imagen" type="file" class="style21" id="imagen" />
<input type="hidden" name="MM_insert" value="form1" />
<input name="nombre" type="hidden" id="nombre" value="<?php echo $_SESSION['Usuario']; ?>" />
</div></td>
<td><div align="center">
<input name="tipo" type="text" id="tipo" size="40" maxlength="99" />
</div>
</label></td>
</tr>
<tr>
<td colspan="2"><div align="center" class="enviar">
<input name="enviar2" type="image" onclick="MM_validateForm('tipo','','R');return document.MM_returnValue" src="img_btn/add.png" />
<br />
<span class="style1">Subir imagen</span></div></td>
</tr>
</table>
</form> <hr /> </td>
</tr>
</table>