W3C home > Mailing lists > Public > www-html@w3.org > January 2003

input type= file problems

From: <mfmartin@med2.unex.es>
Date: Wed, 29 Jan 2003 14:54:48 +0100
To: <www-html@w3.org>
Message-ID: <LNEHIEJBHBLMFHEALCCKKECJCAAA.mfmartin@med2.unex.es>

	I want to use this:

<SCRIPT LANGUAGE="JavaScript">
<!--
	function validar() {
		document.formulario.texto.value = "mi texto";
		document.formulario.FILE1.value = "c:\rascacielos.jpg";
	}


//-->
</SCRIPT>

     inside a web page like this:

<form action="http://www.pppp.es/cgi_upload/upload.cgi" method="post"
name="formulario" enctype="multipart/form-data">

<input type="File" name="FILE1" >
<p>
<input type="Submit" value="submit">
<p>
<input type="button" value="cargar" onClick="validar()">



	cause i want to send files to a server. But this not work, does anybody
know why?

		Thanks......

----------------------------------------------
Marcos Fernández Martín -- Univ.de Extremadura
----------------------------------------------
Received on Friday, 31 January 2003 03:08:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:54 GMT