note 55614 added to features.file-upload.multiple

From: Date: Mon, 08 Aug 2005 21:17:49 +0000
Subject: note 55614 added to features.file-upload.multiple
Groups: php.notes 
Request: Send a blank email to php-notes+get-93276@lists.php.net to get a copy of this message
Here is a the simple test form I needed, pieced togther from 2 or 3 posts in the documentation elsewhere. <html> <head> <title>HTML Form for uploading image to server</title> </head> <body> <form action="" method="post" enctype="multipart/form-data"> <p>Pictures: <input type="file" name="pictures[]" /> <input type="file" name="pictures[]" /> <input type="file" name="pictures[]" /> <input type="submit" value="Send" /> </p> </form> <?php //places files into same dir as form resides foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) { echo"$error_codes[$error]"; move_uploaded_file( $_FILES["pictures"]["tmp_name"][$key], $_FILES["pictures"]["name"][$key] ) or die("Problems with upload"); } } ?> </body> </html> ---- Manual Page -- http://www.php.net/manual/en/features.file-upload.multiple.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55614 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55614&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55614&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55614&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55614&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55614&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55614&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55614&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93276) next »