Ver Mensaje Individual
  #12 (permalink)  
Antiguo 30/06/2003, 16:45
Avatar de virla
virla
 
Fecha de Ingreso: julio-2002
Ubicación: Rio Gallegos - Santa Cruz
Mensajes: 893
Antigüedad: 22 años, 9 meses
Puntos: 1
el formulario lo llamo de esta forma
function fotoCh()
{
var arr2 = window.open("form.asp","" ,"width=350","height=50" );
document.armar.fotoC.value= arr2
}
-----------------
<input name="subFoto" type="submit" id="subFoto" onClick="fotoG()" value="Enviar">
-------------------
y en el formulario esta este codigo

<html>
<head>
<title>Formulario de envío de ficheros</title>
</head>
<body>
<!--#include file="xelupload.asp"-->
<% IF Request.Form("fichero") = "" THEN %>
<form action="form.asp" method="post" enctype="multipart/form-data">
<input type="file" name="fichero" size="20"><br>

<input type="submit" value="Subir">
</form>
<%ELSE%>
<SCRIPT LANGUAGE=JavaScript FOR=Ok EVENT=onclick>
<!--
window.returnValue = arch.value;
window.close();
// -->
</SCRIPT>
<%
Dim up, fich
set up = new xelUpload
up.Upload()
Response.Flush
For each fich in up.Ficheros.Items
%>
<p>Archivo subido...</p>
<p>
<INPUT TYPE=TEXT ID=arch SIZE=20 value=<%="/fotos/" & fich.Nombre%>>
<%
Response.Write("<li>Nombre: <b>" & fich.Nombre & "</b></li>")
fich.Guardar Server.MapPath("\fotos")
Next
%>
</p>
<BUTTON ID=Ok TYPE=SUBMIT>OK</BUTTON>
<%
'Limpiamos objeto
set up = nothing
%>
<%END IF%>
</body>
</html>