Ver Mensaje Individual
  #1 (permalink)  
Antiguo 04/10/2009, 04:45
Avatar de zaetoner
zaetoner
 
Fecha de Ingreso: noviembre-2007
Ubicación: La ciudad de México
Mensajes: 607
Antigüedad: 17 años, 4 meses
Puntos: 30
hola forosdelweb, lo que intento hacer es un multiupload y me funciona bien pero sube todo tenga o no archivo
php

foreach($_FILES['subirfoto']['tmp_name'] as $fotosubir ){

html

<input name="subirfoto[]" type="file" /></div>
<div style="width:950px; height:auto; float:left; color:#669900; font-size:24px" align="center">2
<input name="subirfoto[]" type="file" /></div>
<div style="width:950px; height:auto; float:left; color:#669900; font-size:24px" align="center">3
<input name="subirfoto[]" type="file" /></div>
<div style="width:950px; height:auto; float:left; color:#669900; font-size:24px" align="center">4
<input name="subirfoto[]" type="file" /></div>
<div style="width:950px; height:auto; float:left; color:#669900; font-size:24px" align="center">5

lo que quiero es que solo suba cuando aya archivo

creen que si pongo esto se solucionara

foreach($_FILES['subirfoto']['tmp_name'] as $key=> $fotosubir ){

if(!empty($fotosubir)){
__________________
...

Última edición por GatorV; 04/10/2009 a las 13:51