tags:

views:

37

answers:

1

Im developing an form in cakePHP where i want to set two forms next to eachother. Im creating it using this code.

echo $form->input('timeback', array('options' => array('week',1,2,3,)));

This creates a dropdown. Followed by this code:

echo $form->end('submit');

This all works well, accept that these two forms should be next to eachother instead of below eachother.

Is there a way to make this happen?

Thanx in advance!

+2  A: 

You should use CSS to solve issues like this. Anyway try setting form tag with style "display:inline" instead of its default "display:block"

f13o
Additionally, know that the form helper automatically adds a div to surround each input/label block, unless you pass a 'div' => false array index to the form helper method.
Travis Leleu