View Single Post
  #1 (permalink)  
Old 05-30-2008, 06:58 AM
lameck lameck is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Thumbs up Implementing Dynamic Text Box in Zend_Form

Hie i am trying to find out how i can implement dynamic text boxes in Zend, so what i want to do is if someone selects the number of children it will generate text boxes equaling the number of children selected in the below Select :
So i am not sure how i can achieve this with Zend_From

<?php
$number_of_children = new Zend_Form_Element_Select('number_of_children');
$number_of_children->setLabel('Number of your children below the ags of 21')
->setMultiOptions(array('1', '2', '3', '4', '5' ,'6' ,'7', '8'))
->setRequired(true)->addValidator('NotEmpty', true);
?>
Reply With Quote