Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/03/2009, 16:43
Avatar de bacdavi
bacdavi
 
Fecha de Ingreso: junio-2006
Ubicación: http://localhost/
Mensajes: 351
Antigüedad: 18 años, 8 meses
Puntos: 7
Respuesta: Subir Imagenes

De nuevo muchas gracias Panino5001,

He encontrado una solucion bastante prometedora, pero ahora me surge un problema, tengo el siguiente codigo:

Código HTML:
<head>
<script language="javascript">
function Checkfiles()
{
var fup = document.getElementById('TXTfoto1');
var fileName = fup.value;
var ext = fileName.substring(fileName.lastIndexOf('.') + 1);
if(ext == "gif" || ext == "GIF" || ext == "JPEG" || ext == "jpeg" || ext == "jpg" || ext == "JPG" || ext == "")
{
return true;
} 
else
{
alert("Upload Gif or Jpg images only");
fup.focus();
return false;
}
}
</script>

</head>
<body>
<tr><form action="test_isset.php" method="post" onsubmit="return Checkfiles();">
  <td><input type="file" name="TXTfoto1" id="TXTfoto1"></td>
  <td><input type="file" name="TXTfoto2" id="TXTfoto2"></td>
<td><input type="file" name="TXTfoto3" id="TXTfoto3"></td>
<td><input type="submit" name="Siguiente" value="Siguiente"></td>
</form></tr>
</body> 
Pero solo lo puedo hacer con el TXTfoto1, y por consiguiente me hacen falta el TXTfoto2 y TXTfoto3.

Me podrian ayudar con este problemilla??