Here is a small example of a view file which shows one text box and 2
horizontal pull down menus in a form in a single horizontal line
<div >
<?php echo $form->create('DataForm' );?>
<fieldset>
<legend><?php __('Add Stuff');?></legend>
<?php
echo "<div id=div5>";
echo $form->input('numberone' , array('label' => false ,
'type'=>'text','size' => '7',
'maxlength'=>'7' , 'div' => '' , 'error' => false));
echo $form->input('dropdown1' , array('label' => false, 'div' =>
'' , 'options' => array(
'option1' => 'option1',
'option2' => 'option2',
'option3' => 'option3',
'option4' => 'option4',
)));
echo $form->input('dropdown2' , array('label' => false , 'div'
=>
'', 'options' => array(
'option1' => 'option1',
'option2' => 'option2',
'option3' => 'option3',
'option4' => 'option4') ));
echo "</div>";
?>
</fieldset>
<?php
echo $form->error('numberone');
echo $form->error('dropdown1');
echo $form->error('dropdown2');
echo $form->end('Send');
?>
</div>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---