Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/06/2007, 11:25
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Re: Error al agregar un echo al value en un hidden ¿¿¿?

Prueba asi:
Código PHP:
function agregar($p$nom)
 {
  echo 
'<form name="ag" method="post" action="carrocomp.php">';
  echo 
'<input type="hidden" name="boton1" value="Agregar">';
  echo 
'<input type="hidden" name="prec" value="' $p '">'
  echo 
'<input type="hidden" name="nomb" value="' $nom '">';   
  echo 
'<button name="agree">Agregar</button>';
  echo 
'</form>';
 }