Uploading files and variables
by Nate Harel <nharel(at)nettech-services.net>
|
| Date: |
Tue, 05 Feb 2002 20:43:07 -0500 |
| To: |
hwg-techniques(at)hwg.org |
| |
todo: View
Thread,
Original
|
|
Hi everyone,
I am sending this again because I did not get any response the first time,
so am hoping someone might have some idea for me.
I am attempting to do a page that allows me to upload a jpg file using a
perl routine called upload.pl I got on the net.
It works great, however, along with the file, I want to upload a caption
for the photo and that is where I am having problems.
I am using the form below to upload the name file FILE1. I also want to get
a caption for the photo and thought I could simply place another INPUT
field called "caption", but I can't seem to get this going. The caption
field never makes it. I assume it is due to the ENCTYPE of this form, but
don't know how to resolve this other than to have two forms.
Any suggestions?
<.FORM METHOD="POST" ACTION="../cgi-bin/uploadphoto.pl"
ENCTYPE="multipart/form-data">
<BR>
<.INPUT TYPE="FILE" NAME="FILE1">
<BR>
<.INPUT type="text" name="caption" size="50">
Caption<br>
<br>
<CENTER><.INPUT TYPE="SUBMIT" VALUE="Upload Photo!"></CENTER>
<./FORM
Thanks
Nate
----------------------------------
Nate Harel
NetTech Services
66 Carol Road
Needham, MA 02492-1108
Tel: 1-781-559-8176
Toll Free: 1-877-567-8936
FAX: 1-877-567-8936
Email: nharel(at)nettech-services.net
www.nettech-services.net
www.nettech-backup.com
----------------------------------
----------------------------------
Nate Harel
NetTech Services
66 Carol Road
Needham, MA 02492-1108
Tel: 1-781-559-8176
Toll Free: 1-877-567-8936
FAX: 1-877-567-8936
Email: nharel(at)nettech-services.net
www.nettech-services.net
www.nettech-backup.com
----------------------------------
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.