RE: Uploading files and variables

by Klaas De Waele <klaas(at)gracegraphics.be>

 Date:  Wed, 6 Feb 2002 09:47:18 +0100
 To:  "'Nate Harel'" <nharel(at)nettech-services.net>,
"'hwg-techniques(at)hwg.org'" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
What I did once to get around it, was I had a MySQL database run with php.
Form with caption entry - submit - then 'want to upload a file?  Click
here.' - file uploaded + filename added to the database in the particular
record.


- Kayjey -
www.fiatcoupe.net


-----Oorspronkelijk bericht-----
Van: owner-hwg-techniques(at)hwg.org
[mailto:owner-hwg-techniques(at)hwg.org]Namens Nate Harel
Verzonden: woensdag 6 februari 2002 2:43
Aan: hwg-techniques(at)hwg.org
Onderwerp: Uploading files and variables


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.