Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/08/2017, 12:31
maxhy
 
Fecha de Ingreso: enero-2015
Mensajes: 32
Antigüedad: 9 años, 3 meses
Puntos: 0
Respuesta: problema con un código

Cita:
Iniciado por hhs Ver Mensaje
Tienes mucho código repetido, lee la doc para que veas como puedes enviar multiples archivos en el formulario [url]http://php.net/manual/es/features.file-upload.multiple.php[/url]

También seria bueno que publicaras tu formulario
este es el formulario:
Código PHP:
<form action="alta.php" method="post" enctype="multipart/form-data" name="form1">
  
Titulo de Producto:<br>
  <
label>
  <
input name="titulo" type="text" id="titulo">
  </
label
  <
p>Imagen:<br>
    <
label>
    <
input name="img1" type="file" id="img1">
    </
label>
    <
br>
    <
label>
    <
input name="img2" type="file" id="img2">
    </
label>
    <
br>
    <
label>
    <
input name="img3" type="file" id="img3">
    </
label>
    <
br>
    <
label>
    <
input name="img4" type="file" id="img4">
    </
label>
    <
br>
    <
label>
    <
input name="img5" type="file" id="img5">
    </
label>
  </
p>
  <
p>Categoria Madre:<br>
    <
label>
      <
select name="categoria" id="categoria">
        <
option value="regalosempresarial">Regalos Empresarial</option>
        <
option value="carteleria">Carteleria</option>
        <
option value="gigantografia">Gigantografia</option>
      </
select>
    </
label>
  </
p>
  <
p>Descripcion:<br>
    <
label>
      <
textarea name="descripcion" id="descripcion"></textarea>
    </
label>
  </
p>
  <
p>Codigo del Producto:<br>
    <
label>
    <
input name="codigo" type="text" id="codigo">
    </
label>
</
p>
  <
p>
    <
label>
    <
input type="submit" name="Submit" value="Enviar">
    </
label>
  </
p>
</
form