<html>
<head>
<title></title>
<script language="javascript">
function add(olddiv, newdiv) {
var thisOld = document.getElementById(olddiv);
var thisNew = document.getElementById(newdiv);
var thisOldValue = thisOld.innerHTML;
var thisNewValue = thisNew.innerHTML;
thisNew.innerHTML = thisNewValue + thisOldValue;
}
</script>
</head>
<body>
<div id="old" style="display: none;">
<input type="file" name="upload[]"><br />
</div>
<a href="javascript:add('old', 'new');">Upload</a>
<div id="new">
</div>
</body>
</html>
<html>
<head>
<title></title>
<script language="javascript">
function add(olddiv, newdiv) {
var thisOld = document.getElementById(olddiv);
var thisNew = document.getElementById(newdiv);
var thisOldValue = thisOld.innerHTML;
var thisNewValue = thisNew.innerHTML;
thisNew.innerHTML = thisNewValue + thisOldValue;
}
</script>
</head>
<body>
<div id="old" style="display: none;">
<input type="file" name="upload[]"><br />
</div>
<a href="javascript:add('old', 'new');">Upload</a>
<div id="new">
</div>
</body>
</html>