note 13393 added to features.file-upload.php

From: Date: Thu, 14 Jun 2001 15:27:38 +0000
Subject: note 13393 added to features.file-upload.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-14376@lists.php.net to get a copy of this message
dharana, why dont you let HTML fill the array for you? On the second page, loop through the number of files they want to upload and something like: <form enctype="multi....etc.. <? for( $i=0; $i<$num; $i++ ) { echo "stuff.."; echo "<input type="file" name="userfile[]">\n"; echo "more stuff.."; } </form> that way.. after they enter in all of the files, the filenames will be stored into the userfile[] array and ready for opening. Does that work for files like it does text boxes, etc? I'm not sure, this is just off of the top of my head. http://www.php.net/manual/en/features.file-upload.php

« previous php.notes (#14376) next »