Select Class

210 views
Skip to first unread message

rlweb

unread,
Sep 8, 2013, 3:15:15 PM9/8/13
to php-form-bu...@googlegroups.com
$select = array(
"0"=>"Follow Times below",
"1"=>"Charge 1",
"2"=>"Charge 2",
"3"=>"Charge 3");
$form->addElement(new Element\Select("All Time Charges:", "AllTime", $select));

How could I make PHP set the option value as 0,1,2,3. As now it just shows the text? 

 

Reza Babaei

unread,
Sep 8, 2013, 3:43:29 PM9/8/13
to php-form-bu...@googlegroups.com
array('123','123','123','123')


2013/9/8 rlweb <rhys...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "php-form-builder-class" group.
To unsubscribe from this group and stop receiving emails from it, send an email to php-form-builder-...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Best Regards

Babaei

Julio Formiga

unread,
Sep 13, 2013, 2:27:34 PM9/13/13
to php-form-bu...@googlegroups.com
In OptionElement.php

/*
if(!empty($this->options) && array_values($this->options) === $this->options)
$this->options = array_combine($this->options, $this->options);
*/
Reply all
Reply to author
Forward
0 new messages