PHP Code to subscribe email address

If you want to add select element that adds multiple options at a time, Mean we can select multiple options then we will add following code snippet in Zend framework form .Then we will show this element in view.
Here is code to add multiple options select element.

$this->add(array(
            ‘type’ => ‘ZendFormElementSelect’,
            ‘name’ => ‘state’,
            ‘attributes’ => array(
                ‘multiple’ => ‘multiple’,
                ‘id’ => ‘amenities’,
            ),
            ‘options’ => array(
                ‘label’ => ‘state:’,
                ’empty_option’ => ”,
                ‘value_options’ => @$arrSelectData[‘states’],
            ),
        ));

Leave a Reply

Your email address will not be published. Required fields are marked *