Hola de nuevo.
Añadimos algunas líneas de código y vualá:
Código PHP:
<html>
<head>
<script type="text/javascript">
num=0;
function ver(fil) {
obj=fil.form;
num++;
elem=document.createElement('input');
elem.name='algo'+num;
elem.id='algo'+num;
elem.type="file";
obj.appendChild(elem);
}
function eliminar(fil) {
obj=fil.form;
obj.removeChild(document.getElementById('algo'+num));
num--;
}
</script>
</head>
<body>
<form>
<input type="button" onclick="ver(this)" />
<input type="button" onclick="eliminar(this)" />
</form>
</body>
</html>
Saludos,