PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Sep 19, 2019 8:27 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Feb 09, 2005 6:49 pm 
Offline
Spockulator
User avatar

Joined: Wed Feb 04, 2004 9:15 pm
Posts: 4714
Location: Eden, Utah
This will allow users to select multiple files and and upload them all at once (or remove them from a select box).

Note: no file-type checking done here (on client side) so add that if you wanna.

just handle the uploadz[] array on the php side as you wish:

you can see a workign model

Syntax: [ Download ] [ Hide ]
<div class="html" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #00bbdd;"><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"></span></li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/html.html"><span style="color: #000000; font-weight: bold;"><html></span></a></span></li><li style="" class="li2"><span style="color: #009900;"><a href="http://december.com/html/4/element/head.html"><span style="color: #000000; font-weight: bold;"><head></span></a></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/title.html"><span style="color: #000000; font-weight: bold;"><title></span></a></span>Multiple File Uploader<span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></title></span></span></li><li style="" class="li2"><span style="color: #009900;"><a href="http://december.com/html/4/element/style.html"><span style="color: #000000; font-weight: bold;"><style></span></a></span></li><li style="" class="li1">body</li><li style="" class="li2">{</li><li style="" class="li1">background-color:#9eb4b1; font-size:</li><li style="" class="li2">}</li><li style="" class="li1">.gone</li><li style="" class="li2">{</li><li style="" class="li1">display:none;</li><li style="" class="li2">}</li><li style="" class="li1">input, select</li><li style="" class="li2">{</li><li style="" class="li1">font-family:arial; font-size:8.5pt; background-color:#424e51; color:#b3b19b; border: 1px #ffffff</li><li style="" class="li2">solid;</li><li style="" class="li1">}</li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></style></span></span></li><li style="" class="li2"><span style="color: #009900;"><a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;"><script></span></a></span></li><li style="" class="li1">/////////////////////////////////////////////////////</li><li style="" class="li2">// Javascript by Burrito 02/09/2005 //</li><li style="" class="li1">// with a lil' help from TD //</li><li style="" class="li2">// inspired by feyd //</li><li style="" class="li1">// Modify at will, or Al, Or Harry //</li><li style="" class="li2">/////////////////////////////////////////////////////</li><li style="" class="li1"> </li><li style="" class="li2">function hasOptions(obj) {</li><li style="" class="li1">if (obj!=null <span style="color: #ddbb00;">&& obj.options!=null)</span></li><li style="" class="li2"><span style="color: #ddbb00;">{</span></li><li style="" class="li1"><span style="color: #ddbb00;">return true;</span></li><li style="" class="li2">}else{</li><li style="" class="li1">return false;</li><li style="" class="li2">}</li><li style="" class="li1">}</li><li style="" class="li2"> </li><li style="" class="li1">function addFi(t,v){</li><li style="" class="li2">var s = document.MyForm.whfilez;</li><li style="" class="li1">if(!hasOptions(s)){</li><li style="" class="li2">var index = 0;</li><li style="" class="li1">}else{</li><li style="" class="li2">var index = s.options.length;</li><li style="" class="li1">}</li><li style="" class="li2">t = t.split("<span style="color: #ddbb00;">&quote;</span>);</li><li style="" class="li1">t = t?t.length-1];</li><li style="" class="li2">t = t.split("/");</li><li style="" class="li1">t = t?t.length-1];</li><li style="" class="li2"> </li><li style="" class="li1">s.options?index] = new Option(t,v,false,false);</li><li style="" class="li2">document.getElementById(v).style.display = "none";</li><li style="" class="li1">showNext();</li><li style="" class="li2">}</li><li style="" class="li1">function showNext(where){</li><li style="" class="li2">for(i=1;i<span style="color: #009900;"><<span style="color: #cc66cc;">13</span>;i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li><li style="" class="li1">document.getElementById<span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>.<span style="color: #000066;">style</span>.display = <span style="color: #ff0000;">"none"</span>;</li><li style="" class="li2"><span style="color: #66cc66;">&#125;</span></li><li style="" class="li1"><span style="color: #000066;">for</span><span style="color: #66cc66;">&#40;</span>i=<span style="color: #cc66cc;">1</span>;i<<span style="color: #cc66cc;">13</span>;i++<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li><li style="" class="li2">var d = <span style="color: #ff0000;">"a"</span> + i;</li><li style="" class="li1">if<span style="color: #66cc66;">&#40;</span>document.getElementById<span style="color: #66cc66;">&#40;</span>d<span style="color: #66cc66;">&#41;</span>.<span style="color: #000066;">value</span> == <span style="color: #ff0000;">""</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li><li style="" class="li2"> </li><li style="" class="li1">document.getElementById<span style="color: #66cc66;">&#40;</span>i<span style="color: #66cc66;">&#41;</span>.<span style="color: #000066;">style</span>.display = <span style="color: #ff0000;">"inline"</span>;</li><li style="" class="li2">break;</li><li style="" class="li1"><span style="color: #66cc66;">&#125;</span></li><li style="" class="li2"><span style="color: #66cc66;">&#125;</span></li><li style="" class="li1"><span style="color: #66cc66;">&#125;</span></li><li style="" class="li2"> </li><li style="" class="li1">function remFi<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#123;</span></li><li style="" class="li2">var s = document.MyForm.whfilez;</li><li style="" class="li1"><span style="color: #000066;">for</span><span style="color: #66cc66;">&#40;</span>i=<span style="color: #66cc66;">&#40;</span>s.options.length<span style="color: #cc66cc;">-1</span><span style="color: #66cc66;">&#41;</span>; i></span>=0; i--){</li><li style="" class="li2">var o = s.options?i];</li><li style="" class="li1">if (o.selected){</li><li style="" class="li2">var fh = s.options?i].value;</li><li style="" class="li1">document.getElementById(fh).innerHTML = "<span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a"</span>+fh+<span style="color: #ff0000;">""</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,"</span>+fh+<span style="color: #ff0000;">")"</span><span style="color: #000000; font-weight: bold;">></span></span>";</li><li style="" class="li1">s.options?i] = null;</li><li style="" class="li2"> </li><li style="" class="li1">}</li><li style="" class="li2">}</li><li style="" class="li1">showNext();</li><li style="" class="li2"> </li><li style="" class="li1">}</li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></script></span></span></li><li style="" class="li2"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></head></span></span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #009900;"><a href="http://december.com/html/4/element/body.html"><span style="color: #000000; font-weight: bold;"><body></span></a></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;"><div</span></a> <span style="color: #000066;">align</span>=<span style="color: #ff0000;">"center"</span><span style="color: #000000; font-weight: bold;">></span></span></li><li style="" class="li2"><span style="color: #009900;"><a href="http://december.com/html/4/element/form.html"><span style="color: #000000; font-weight: bold;"><form</span></a> <span style="color: #000066;">method</span>=<span style="color: #ff0000;">"post"</span> <span style="color: #000066;">enctype</span>=<span style="color: #ff0000;">"multipart/form-data"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"MyForm"</span><span style="color: #000000; font-weight: bold;">></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"1"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a1"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,1)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"2"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a2"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,2)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"3"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a3"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,3)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"4"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a4"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,4)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"5"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a5"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,5)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"6"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a6"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,6)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"7"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a7"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,7)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"8"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a8"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,Cool"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"9"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a9"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,9)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"10"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a10"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span> <span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,10)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"11"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a11"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span> <span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,11)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;"><span</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"12"</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"file"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"a12"</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"uploadz?]"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span></li><li style="" class="li2"><span style="color: #000066;">class</span>=<span style="color: #ff0000;">"gone"</span> <span style="color: #000066;">onChange</span>=<span style="color: #ff0000;">"addFi(this.value,12)"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></span></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;"><br></span></a></span></li><li style="" class="li2"><span style="color: #009900;"><a href="http://december.com/html/4/element/select.html"><span style="color: #000000; font-weight: bold;"><select</span></a> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">"whfilez"</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">"whfilez"</span> <span style="color: #000066;">multiple</span>=<span style="color: #ff0000;">"multiple"</span> <span style="color: #000066;">size</span>=<span style="color: #ff0000;">"10"</span><span style="color: #000000; font-weight: bold;">></span></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/optgroup.html"><span style="color: #000000; font-weight: bold;"><optgroup</span></a> <span style="color: #000066;">label</span>=<span style="color: #ff0000;">"Files To Upload"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></optgroup></span></span></li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></select></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;"><br></span></a></span></li><li style="" class="li2"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"button"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"REM (ALT-D)"</span> <span style="color: #000066;">onClick</span>=<span style="color: #ff0000;">"remFi()"</span> <span style="color: #000066;">accesskey</span>=<span style="color: #ff0000;">"d"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;"><br></span></a></span></li><li style="" class="li1"><span style="color: #009900;"><a href="http://december.com/html/4/element/input.html"><span style="color: #000000; font-weight: bold;"><input</span></a> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">"submit"</span> <span style="color: #000066;">value</span>=<span style="color: #ff0000;">"Upload These Files (ALT-U)"</span> <span style="color: #000066;">accesskey</span>=<span style="color: #ff0000;">"u"</span><span style="color: #000000; font-weight: bold;">></span></span><span style="color: #009900;"><a href="http://december.com/html/4/element/br.html"><span style="color: #000000; font-weight: bold;"><br></span></a></span></li><li style="" class="li2"> </li><li style="" class="li1"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></form></span></span></li><li style="" class="li2"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></div></span></span></li><li style="" class="li1"> </li><li style="" class="li2"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></body></span></span></li><li style="" class="li1"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;"></html></span></span></li></ol></div>


you can see a workign model

Burr

d11wtq | Fixed issue with HTML entities (23rd Nov 2005)
Weirdan | Added syntax highlighting (April 15th, 2007)


Top
 Profile  
 
 Post subject: Multiple File Upload
PostPosted: Sun Apr 15, 2007 6:45 am 
Offline
Forum Newbie

Joined: Sun Apr 15, 2007 6:37 am
Posts: 1
Dear Burrito,

How can display these file after upload multiple file are completed?

Lucy


Top
 Profile  
 
PostPosted: Sun Jan 13, 2008 3:36 pm 
Offline
Forum Contributor
User avatar

Joined: Tue Jul 04, 2006 3:59 am
Posts: 147
Location: San Francisco, CA
Great work! If it can also show an upload progressing bar that will be awesome.


Top
 Profile  
 
PostPosted: Sun Jun 08, 2008 9:47 am 
Offline
Forum Newbie

Joined: Mon Sep 10, 2007 3:01 pm
Posts: 19
What is the best way to handle the array to upload the files to a certain folder?
Any help would be great.
Cheers


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group