Page 1 of 1

Upload file in "web-email site" style

Posted: Wed Aug 16, 2006 11:47 am
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:)

Posted: Wed Aug 16, 2006 11:53 am
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.

Posted: Wed Aug 16, 2006 12:02 pm
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:(

Posted: Wed Aug 16, 2006 12:18 pm
by feyd

Posted: Wed Aug 16, 2006 12:38 pm
by mahr
Once again,
Thank you for quick help :D