need to create a select element with duplicate values

From: Date: Mon, 10 Apr 2006 22:43:24 +0000
Subject: need to create a select element with duplicate values
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23617@lists.php.net to get a copy of this message
Hi Folks, this should be simple, but i cannot do it with QuickForm. I *simply* want to produce the following HTML: <select name='element_name'> <option value="">Select One</option> <option value="">---------</option> <option value="user1">George Washington</option> <option value="user43">George Bush</option> ..... </select> Notice that the first two options have a duplicate (empty) value. The only way i know of to create a select element with QuickForm is to pass an associative array to the addElement() call, but i cannot have duplicate keys in an assoc. array, so i cannot model this with one array. Smarty allows you to use two 1-dimensional arrays to achieve this result. What can i do for this in QuickForm? Thanks!!! -michael geary

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