you can only ever upload 1 file per "file" input box, but you can have more
than one of these input fields per form. you might have something like

<input type="file" name="file1">
<input type="file" name="file2">
<input type="file" name="file3">

that way when you are processing (assuming PHP4+) you can use something like


blah blah

hope that helps.

you will have to check, but i think the MAX_FILESIZE and post_max_filesize
or (whatever they are) variables apply to the *whole* form, so if your
MAX_FILESIZE var is set to 2meg, and you have 3 files uploading, then their
total must not exceed 3meg (i think)



// -----Original Message-----
// From: Brandon Paul [mailto:[EMAIL PROTECTED]]
// Sent: Friday, 12 April 2002 6:06 AM
// Subject: [PHP-DB] Upload Multiple Images
// Hi all...kinda new to PHP and MySQL...anyhow, I have created 
// the following
// table:
// CREATE TABLE images (
//   id smallint(6) NOT NULL auto_increment,
//   image_title varchar(75) default NULL,
//   image_src varchar(150) default NULL,
//   PRIMARY KEY (id)
// I have also created a form that allows me to upload one 
// image at a time, but
// I would like to be able to upload SEVERAL images at once.  
// Directory for
// images is:
// ./_images/(filenames)
// There are also some subdirectories.  What can I do to make 
// it so that I can
// upload all of the images in a directory (or at least more 
// than one) without
// having to type each one in and submit it?
// Your help would be very much appreciated!
// Thanks,
// Brandon Paul
// -- 
// PHP Database Mailing List (
// To unsubscribe, visit:

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to