Do you mean you just don't want the actual file uploaded...just the name
of it?  You can probably accomplish this by having the file form field
in a separate form (that is not submitted).  Then use javascript to
populate the field in the form that actually does get submitted.

-----Original Message-----
From: Neville Hodder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 07, 2005 9:00 AM
To: beginners-cgi@perl.org
Subject: How to browse and select a remote file and then return the
filename

I am in the process of learning how to use the CGI.pm module but can not
find a method that will allow me to simply choose a 'remote' file. I
need to be able to return the value "path+filename" of a file that the
user has browsed to using something like the standard HTML form type:
 
<P><INPUT type="file" value="filename"></P>
 
I do NOT want to upload a file using $query->filefield, instead I want
the user to be able to select a file using the standard browse dialogue
and then the CGI script return that selected filename for further use. 
 
Thanks
Nev


-----Message Disclaimer-----

This e-mail message is intended only for the use of the individual or
entity to which it is addressed, and may contain information that is
privileged, confidential and exempt from disclosure under applicable law.
If you are not the intended recipient, any dissemination, distribution or
copying of this communication is strictly prohibited. If you have
received this communication in error, please notify us immediately by
reply email to [EMAIL PROTECTED] and delete or destroy all copies of
the original message and attachments thereto. Email sent to or from the
Principal Financial Group or any of its member companies may be retained
as required by law or regulation.

Nothing in this message is intended to constitute an Electronic signature
for purposes of the Uniform Electronic Transactions Act (UETA) or the
Electronic Signatures in Global and National Commerce Act ("E-Sign")
unless a specific statement to the contrary is included in this message.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to