Ver Mensaje Individual
  #21 (permalink)  
Antiguo 06/09/2005, 15:28
Avatar de Mickel
Mickel
 
Fecha de Ingreso: mayo-2002
Ubicación: Lima, Peru
Mensajes: 4.619
Antigüedad: 22 años
Puntos: 7
quita toda la fila que dice Para y create dos campos hidden justo antes del boton de Enviar
<input type=hidden name='txtton' value='(nombre destino)'>
<input type=hidden name='txttoe' value='(email destino)'>

Y con eso deberia funcionar...

Ah, y una cosita mas, que me olvide de poner... Si quieres que valide con JS el tipo de archivo pones esto en el HEAD:
Código:
<script language='JavaScript'>
function LimitAttach(tField) {
   file=tField.value;
   extArray = new Array("gif","jpg");
   allowSubmit = false;
   if (!file) return;
   while (file.indexOf("\\") != -1) file = file.slice(file.indexOf("\\") + 1);
   while (file.indexOf(".") != -1) file = file.slice(file.indexOf(".") + 1);
   ext = file.toLowerCase();
   for (var i = 0; i < extArray.length; i++) {
	if (extArray[i] == ext) {
	   allowSubmit = true;
	   break;
	}
   }
   if (allowSubmit) {
   } else {
        tField.value="";
	  alert("Solo puede subir archivos del tipo " + (extArray.join("  ")) + "\nPor favor seleccione otro archivo);
   }
}
</script>
Y al File le pondrias
<input type='file'... onblur='javascript:LimitAttach(this);'>
__________________
No tengo firma ahora... :(