FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


upload multiple files





AlexandruDan
Hello.

I tryed to add 5 pictures for an announcement.
I know how to add the announcement and 1 picture for it and I don't want to have 5 cases with "add the 1st/2nd/3th/4th/5th picture".

Can somebody help me, please?
AOP Web Development
you can make set an array for the files upload and retrieve the $_FILES['pic']['name'][$key] via foreach.
Code:

//But to make sure just print_r($_FILES);
in order for you to get the files


foreach($_FILES as $key){

echo $_FILES['pic']['name'][$key];

}

Star Wars Fanatic
I think he is talking about the form, he doesn't want five boxes for them to click to choose to upload, he wants something so it is just one box... At least, that's what I took him to mean.

I don't know of anything like that, personally, but you should Google it.
Related topics
Is it possible to upload music files to a website?
Help for sending 2+ cookies in one page.
New! Yahoo! Mail Beta
Upload file
FTP Spftware for uploading
Only one website...
directadmin question-uploading multiple files simultaneously
FOLDER UPLOAD SOURCE CODE
Need Expert help in php-mysql
compress multiple files
Bulk file upload form a web browser?
Replace content in Multiple files
Help me upload these files (250 Frih$)
Renaming Multiple Files At Once (Windows)
Are you allowed to upload FLASH FIles?
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.