Ver Mensaje Individual
  #3 (permalink)  
Antiguo 15/12/2005, 12:17
Avatar de helthon
helthon
 
Fecha de Ingreso: junio-2005
Ubicación: Lima
Mensajes: 549
Antigüedad: 18 años, 10 meses
Puntos: 7
Hola CLuster

Aqui te pongo todo lo solicitado

Cita:
Te faltó indicar el formulario que usas, ahí (aunque a tí no te lo parezca) hay un par de datos importantes que asegurar que estén correctos (el "enctype" y el nombre del campo "file").
Código PHP:
<form action="index.php?admin=serviciosguardado" method="post" enctype="multipart/form-data" name="formservicios" onSubmit="return validarservicios(this)">
      <table width="436" border="0" align="center" cellpadding="2" cellspacing="2">
        <tr>
          <td width="110" class="textoform">Tipo de Evento </td>
          <td width="296">        
        <?php    
        $consulta 
mysql_query("SELECT * FROM `evento` "); 
        
$resultado mysql_query("SELECT * FROM `evento` ") or die('La consulta fall&oacute;: ' mysql_error());
        echo
'<select name="evento" id="evento" class="formuusuarios">';
        while (
$linea mysql_fetch_array($resultado)) 
        {   
        echo
'<option value="'.$linea["evento"].'">'.$linea["evento"].'</option>';     
        } 
        echo
'</select>';
        
?>          </td>
        </tr>
        <tr>
          <td valign="top">&nbsp;</td>
          <td><table border="0" cellpadding="0" cellspacing="2">
            <tr>
              <td><a href="" onclick="insereTag('[B]','[/B]'); return false;"><img src="../imagenes/mensajes/bold.gif" alt="Negrita" width="21" height="20" border="0"></a></td>
              <td><a href="" onclick="insereTag('[I]','[/I]'); return false;"><img src="../imagenes/mensajes/italic.gif" alt="Cursiva" width="21" height="20" border="0"></a></td>
              <td><a href="" onclick="insereTag('[S]','[/S]'); return false;"><img src="../imagenes/mensajes/underline.gif" alt="Subrayado" width="21" height="20" border="0"></a></td>
              <td>&nbsp;</td>
              <td><a href="" onclick="insereTag('[blockquote]','[/blockquote]'); return false;"><img src="../imagenes/mensajes/indent.gif" alt="Sangrado" width="21" height="20" border="0"></a></td>
              <td><a href="#"><img src="../imagenes/mensajes/insertunorderedlist.gif" alt="Crear Lista" width="21" height="20" border="0"></a></td>
              <td><a href="" onclick="insereTag('[LEFT]','[/LEFT]'); return false;"><img src="../imagenes/mensajes/justifyleft.gif" alt="Derecha" width="21" height="20" border="0"></a></td>
              <td><a href="" onclick="insereTag('[CENTER]','[/CENTER]'); return false;"><img src="../imagenes/mensajes/justifycenter.gif" alt="Centro" width="21" height="20" border="0"></a></td>
              <td><a href="" onclick="insereTag('[RIGHT]','[RIGHT]'); return false;"><img src="../imagenes/mensajes/justifyright.gif" alt="Izquierda" width="21" height="20" border="0"></a></td>
            </tr>
          </table></td>
        </tr>
        <tr>
          <td valign="top" class="textoform">Servicio del Evento </td>
          <td><textarea name="servicio" cols="45" rows="15" class="formuusuarios" id="servicio"></textarea></td>
        </tr>
        <tr>
          <td class="textoform">Tipo de Archivo</td>
          <td><p>
            <label>
            <span class="letra8px">
  <input name="icono" type="radio" class="letra8px" value="0" checked>
  Ninguno</span></label>
            <span class="letra8px">            <label>
            <input name="icono" type="radio" value="jpg">
  Imagen</label>
            <label>
            <input type="radio" name="icono" value="doc">
  Word</label>
            <label>
            <input type="radio" name="icono" value="xls">
  Excel</label>
            <label>
            <input type="radio" name="icono" value="pdf">
  PDF</label>
            </span><br>
          </p></td>
        </tr>
        <tr>
          <td class="textoform">Subir Archivo</td>
          <td><input name="archivo_file" type="file" class="formuusuarios" id="archivo_file" size="35">            </td>
        </tr>
        <tr>
          <td colspan="2"><div align="center">
            <input name="guardar" type="submit" class="botonform" id="guardar" value=":: Guardar Servicios::">            
          </div></td>
          </tr>
      </table>
    </form>
Cita:
También te falto concretar que S.O. usas en tu servidor, si usas un servicio de hosting
Tengo un Hostign donde lo estoy trabajando, yo tengo un codigo donde subo imagenes y utilizo ese mismo codigo solo que ahora incorpore algunas cosas mas que me habian pedido


Cita:
- Tipo de archivo y tamaño de este en tus pruebas
Son archivos pequeños que no pesan mas de 300kb

Cita:
Que mensajes de error o mensajes de tu aplicación (que los tiene) .......
No me muestra ningun mensaje de error, pero cuando me fijo en mi B.D. no hay ningun dato ingresado

Cita:
Sabes donde PHP almacenaría temporalmente el archivo si lo consiguió subir? .. (para que revises ahí si está el archivo).
AL parecer no sube ningun archivo (segun la ruta que coloque), como reviso si esta almacenado temporalmente y aun no lo mueve a la carpeta que indico.?

Gracias cluster por el tiempo tomado
__________________
HELTHON FUENTES
FLORERIA FLORES PERU Floresperu.com.pe
Garantizamos que cada entrega de flores será de la más alta calidad y frescura