Re: AYUDA!!!!

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: AYUDA!!!!
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-14647@lists.php.net to get a copy of this message
ya probaste con el trim elimina los espacios en blanco en una variable... $var=trim($var2); haber si te sirve... bye. Miriam. "Francisco Mosse (apernet.com.ar)" wrote: > Miren esto... > Tengo el siguiente problema, cuando me devuelve la variable $que_busco en la > pantalla, pone "enters" entre los tres datos... COMO HAGO PARA QUE > DESAPAREZCAN ESTOS ENTERS..? ?? POR FAVOR, AYUDENME, es muy urgente...!!! > Probé de mil formas distintas y no me sale.... > Gracias, > Francisco > > --------------------- > $Universidad=$FORM{'Universidad'}-1; > $Facultad=$FORM{'Facultad'}-1; > $Materia=$FORM{'Materia'}-1; > > print "Content-type: text/html\n\n"; > > open(Univ, $Universidades); # Open the file > @Uni = <Univ>; # Read it into an array > close(Univ); # Close the file > > open(Facult, $Facultades); # Open the file > @Facu = <Facult>; # Read it into an array > close(Facult); # Close the file > > open(Mater, $Materias); # Open the file > @Mat = <Mater>; # Read it into an array > close(Mater); # Close the file > > $Valor_Uni = $Uni[$Universidad]; > $Valor_Facu = $Facu[$Facultad]; > $Valor_Mate = $Mat[$Materia]; > chop($Valor_Uni); > chop($Valor_Facu); > chop($Valor_Mate); > print "$Universidad es $Uni[$Universidad]<br>\n"; > print "$Facultad es $Facu[$Facultad]<br>\n"; > print "$Materia es $Mat[$Materia]<br>\n"; > $que_busco = "$Valor_Uni$Valor_Facu$Valor_Mate"; > print "$que_busco"; > > ------------------------------------------------------------ > Francisco Mosse - http://www.alipso.com > División de Internet > Alfa y Omega S.R.L. > http://www.alfa-y-omega.com > ------------------------------------------------------------ > > --------------------------------------------------------------------- > Archivo On-line: http://www.phpes.com/ > Manual PHP en español: http://www.php.net/manual/es/ > Para dar de baja la suscripción, mande un mensaje a: > lista-unsubscribe@phpes.com

« previous php.general.es (#14647) next »