HTML_QuickForm and DB_QueryTool or DB?

From: Date: Mon, 11 Jul 2005 06:37:12 +0000
Subject: HTML_QuickForm and DB_QueryTool or DB?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19938@lists.php.net to get a copy of this message
Hello! I have the following Problem: I use HTML_QuickForm and DB (DB_QueryTool) and the following happens: When I use ->addElement("select", ...) and I save them to an ENUM field in mysql, it doesn't work. Only the default value is saved or the first of the array from the select element. But all I need to make it work is to change from ENUM to VARCHAR in mysql. Now the script works perfect. I set also the same default value in mysql. Now I have only 2 values for my thing so ENUM should be better because of it's internalies. But setting it back to enum makes it fail. Only the first value of the list is saved (or default?) and on ->setValue the array is good (with print_r()) but QuickForm shows me the first element in the list. Whats happening here? thanks, Martin

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