Upload file in "web-email site" style

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
mahr
Forum Newbie
Posts: 11
Joined: Sat Aug 12, 2006 10:43 am

Upload file in "web-email site" style

Post by mahr »

Anyone knows script (in php) or method how to implement in web form multiple files upload?
I know tradition method.

Example: I have now 4 input boxes with 4 browse button besides:
This approach is quite unflexible. Sometimes will be too few and sometimes too much boxes.

I would like make it like in web-email sites (eg. gmail).
You have one input box with browse button and than if you want to add a new file, you click eg. 'add another one', and than new box under the old one appear.

Some advicses will be really appreciated:)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

This wouldn't actually involve PHP specifically. You dynamically generate another file input field while hiding the current one.

Moved to Client Side.
mahr
Forum Newbie
Posts: 11
Joined: Sat Aug 12, 2006 10:43 am

Post by mahr »

Thank you for quick response :)

Could you please give me a bit more detailed specification for my problem or where on web should I look for some tutorial. I looked for one, but not knowing exactly what I looking for, I failed:(
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

mahr
Forum Newbie
Posts: 11
Joined: Sat Aug 12, 2006 10:43 am

Post by mahr »

Once again,
Thank you for quick help :D
Post Reply