Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/06/2018, 16:37
saulrayados
 
Fecha de Ingreso: abril-2016
Mensajes: 44
Antigüedad: 8 años
Puntos: 0
Respuesta: subir mas de una imagen

no se subio el codigo del otro archivo
el codigo que tengo en el formulario es
Código HTML:
Ver original
  1.     <meta charset="UTF-8">
  2.     <meta name="viewport" content="width=device-width, user-scalable=no,
  3.     initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  4. <link href="https://fonts.googleapis.com/css?family=Slabo+27px" rel="stylesheet">
  5. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
  6. <link rel="stylesheet" href="css/estilos.css">
  7. </head>
  8.     <header>
  9.     <div class="contenedor">
  10.         <h1 class="titulo">Subir Foto</h1>
  11.     </div>
  12.     </header>
  13.  
  14.     <div class="contenedor">
  15.         <form class="formulario" method="POST" enctype="multipart/form-data" action="<?php echo htmlspecialchars($_SERVER['PHP_SELF']); ?>">
  16.             <label for="foto">Selecciona tu foto</label>
  17.             <input type="file" id="foto" name="image">
  18.  
  19.             <label for="titulo">Titulo de la foto</label>
  20.             <input type="text" id="titulo" name="title">
  21.  
  22.             <label for="texto">Descripción:</label>
  23.             <textarea name="description" id="texto" placeholder="Ingresa una descripción"></textarea>
  24.  
  25.             <?php if (isset($error)): ?>
  26.                 <p class="error"><?php echo $error; ?></p>
  27.             <?php endif ?>
  28.  
  29.             <input type="submit" class="submit" value="Guardar">
  30.  
  31.         </form>
  32.     </div>
  33. </body>
  34. </html>