Re: Re: [PEAR] HTML_Quickform not working with two hierselects

From: Date: Wed, 07 Mar 2007 14:38:44 +0000
Subject: Re: Re: [PEAR] HTML_Quickform not working with two hierselects
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26762@lists.php.net to get a copy of this message
Alexey: The PHP version is 5.1.6. Mark: this is the php code: I call these functions inside an descendant object from HTML_QuickForm: $name_element = 'codprovinciacodmunicipiocodzona'; $localizacion = &$this->addElement('hierselect', $name_element, $label,'',''); $localizacion->setOptions(getArrayLocalizacionCompleto($first_table, $last_table)); //getArrayLocalizacionCompleto is a function that returns the array with the values $tipos_subtipos = &$this->addElement('hierselect', INM_TABLE_codtipo.INM_TABLE_codsubtipo, $tr->get(INM_TABLE_codtipo.INM_TABLE_codsubtipo, 'forms'),'',''); $tipos_subtipos->setOptions(array($tiposInmueble, $subtiposInmueble)); This is it! Thanks for your help. --------------------------------- LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com

« previous php.pear.general (#26762) next »