Ver Mensaje Individual
  #12 (permalink)  
Antiguo 03/08/2012, 07:47
Avatar de novamix
novamix
 
Fecha de Ingreso: enero-2007
Ubicación: Getafe, Spain
Mensajes: 50
Antigüedad: 17 años, 3 meses
Puntos: 1
Exclamación Respuesta: subir imagenes php

te incluyo el formulario.. pero no me funciona tampoco.. gracias por los ejemplos los estoy probando pero tambien me salen errores. .. haber si lo consigo..

Código PHP:
Ver original
  1. <?php
  2. include_once( dirname(dirname(__FILE__)) . '/classes/check.class.php');
  3. protect("1");
  4.  
  5. if(empty($_POST))
  6.     include_once('header.php');
  7.    
  8.     if(empty($_POST))
  9.     include_once('conect.php');
  10.  
  11. ?>
  12. <div class="container-fluid">
  13.   <div class="row-fluid">
  14.     <div class="span2">
  15.     <?php include('sidebarevent.php'); ?>
  16.     </div>
  17.     <div class="span10">
  18.     <h1> Añadir Nuevo Evento </h1>
  19.    
  20.     <form action="./add2.php" method="post" name="NewEvent">
  21.       <p>
  22.         <input name="username" type="hidden" id="username" value="<?php echo $_SESSION['jigowatt']['username']; ?>" />
  23.       </p>
  24.       <p>
  25.         <label for="artista">Artista</label>
  26.         <input type="text" name="artista" id="artista" />
  27.         <br />
  28.         <label for="fecha">Fecha</label>
  29.         <input type="text" name="fecha" id="fecha" />
  30.         <br />
  31.         <label for="hora">Hora</label>
  32.         <input type="text" name="hora" id="hora" />
  33.         <br />
  34.         <label for="sala">Sala</label>
  35.         <input type="text" name="sala" id="sala" />
  36.         <br />
  37.         <label for="direccion">Direccion</label>
  38.         <input type="text" name="direccion" id="direccion" />
  39.         <br />
  40.          <label for="localidad">Localidad</label>
  41.         <input type="text" name="localidad" id="localidad" />
  42.         <br />
  43.        
  44.         <label for="provincia">Provincia</label>
  45.         <input type="text" name="provincia" id="provincia" />
  46.         <br />
  47.        
  48.         <label for="pais">País</label>
  49.         <input type="text" name="pais" id="pais" />
  50.         <br />Imagen <input type="file" name="txtarchivo" />Solo Jpg
  51.         <input name="valor" type="hidden" id="valor" value="0" />
  52.       </p>
  53.       <p>
  54.         <input type="submit" name="enviar" id="enviar" value="Enviar" />
  55.         <input type="reset" name="button" id="button" value="Restablecer" />
  56.       </p>
  57.     </form>
  58.    
  59.    
  60.  
  61.     </div>
  62.   </div>
  63. </div>
  64.  
  65. <?php include_once('footer.php'); ?>