Ver Mensaje Individual
  #9 (permalink)  
Antiguo 27/09/2005, 11:09
higi
 
Fecha de Ingreso: agosto-2005
Mensajes: 192
Antigüedad: 18 años, 8 meses
Puntos: 0
Gracias ....

He estado tratando de correr el codigo pero no funciona ... tiene algunos errores de Sintaxis ... no estoy muy seguro

Este es uno de ellos

Parse error: syntax error, unexpected ',', expecting '&' or T_VARIABLE in C:\SERVIDOR\WEB\Prueba03.php on line 4

Asi es como lo tengo:

Código PHP:
html>
<body>
<?php 
function NA_nuevo_file(_target,nombre

    var 
newFriend document.createElement('input'); 
    var 
_p document.createElement('p'); 
    
newFriend.type 'file'
    
newFriend.name nombre
    
newFriend.size '50'
    
document.getElementById(_target).appendChild(_p); 
    
document.getElementById(_target).appendChild(newFr  iend); 

 
?>
<input class="boton" value="Aumentar archivos" onclick="NA_nuevo_file('_NA_nuevo_file','archis[]');" type="button"> 

<fieldset id="_NA_nuevo_file"> 
<legend>Adjuntar archivos</legend> 
<input size="50" name="archis[]" class="input-file" type="file"> 
</fieldset> 

</body>
</html>