change values received from $_REQUEST

From: Date: Sat, 19 Jun 2004 23:05:11 +0000
Subject: change values received from $_REQUEST
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13219@lists.php.net to get a copy of this message
Hi I'm coded a form that under certain circumstances need to fix the values that comes from $_REQUEST, for example say: $_REQUEST["id_customer"] (that contains "345") First, I use the setDefaults method to change the value of the element, but quickForm simply don't take it in account, say: $defaults("id_customer" => "0"); $exampleFrm->setDefaults($defaults); This does not worked. So, I do a getElement() and a setValue() to override it, say: $oCustomer = $exampleFrm->getElement("id_customer"); $oCustomer->setValue("0"); A very buggy solution! Is there any way to do that simpler? I suspect that I'm messing the things, but I don't know how :( see you later! ------------ Internet gratis ¡y que funciona! Tres nuevas ciudades con números locales: Escobar, Zárate y Campana Yahoo! Conexión http://ar.online.yahoo.com ¿Qué esperas para navegar bien y a bajo costo?

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