$form->input('Disciplines.0.discipline_id', array('label'=>'Discipline
1', 'type'=>'select',
'selected'=>$html->value('Disciplines.0.discipline_id'),
'options'=>$disciplines, 'multiple'=>'false',  'empty'=>'Choose One'))

There are multiple selection boxes in the view so thats why I needed
to add an index to the name. With or without that index, I am still
getting the returned value in an array.












If you want to see the whole view, it is a bit messing in this email, but here.

<h1>Add Devotion</h1>

<?php echo $form->create('Devotion', array('url'=>array('action'=>'add')));?>   
        <?php echo $form->label('Devotion.name', 'Name of Devotion'); ?>
        <?php echo $form->error('Devotion.name'); ?>
        <?php echo $form->text('Devotion.name', array('size' => '80') ); ?>
        
        <?php echo $form->label('Devotion.description', 'Description'); ?>
        <?php echo $form->error('Devotion.description'); ?>
        <?php echo $form->text('Devotion.description', array('size' => '80') ); 
?>
        
        <?php echo $form->error('Disciplines.0.discipline_id'); ?>
        <?php echo $form->input('Disciplines.0.discipline_id',
array('label'=>'Discipline 1', 'type'=>'select',
'selected'=>$html->value('Disciplines.0.discipline_id'),
'options'=>$disciplines, 'multiple'=>'false',  'empty'=>'Choose
One'));?>
        <?php echo $form->input('Disciplines.0.discipline_level',
array('label'=>'Discipline Level 1', 'type'=>'select',
'selected'=>$html->value('Disciplines.0.discipline_level'),
'options'=>$levels, 'multiple'=>'false'));?>
        
        <?php echo $form->error('Disciplines.1.discipline_id'); ?>
        <?php echo $form->input('Disciplines.1.discipline_id',
array('label'=>'Discipline 2', 'type'=>'select',
'selected'=>$html->value('Disciplines.1.discipline_id'),
'options'=>$disciplines, 'multiple'=>'false',  'empty'=>'Choose
One'));?>
        <?php echo $form->input('Disciplines.1.discipline_level',
array('label'=>' Discipline Level 2', 'type'=>'select',
'selected'=>$html->value('Disciplines.1.discipline_level'),
'options'=>$levels, 'multiple'=>'false'));?>

        <?php echo $form->error('Disciplines.2.discipline_id'); ?>
        <?php echo $form->input('Disciplines.2.discipline_id',
array('label'=>'Discipline 3', 'type'=>'select',
'selected'=>$html->value('Disciplines.2.discipline_id'),
'options'=>$disciplines, 'multiple'=>'false',  'empty'=>'Choose
One'));?>
        <?php echo $form->input('Disciplines.2.discipline_level',
array('label'=>'Discipline Level 3', 'type'=>'select',
'selected'=>$html->value('Disciplines.2.discipline_level'),
'options'=>$levels, 'multiple'=>'false'));?>
<?php echo $form->end('Add Devotion');?>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to