I can't figure out how to put the buttons inside the fieldset using
CakePHP. The only solution I have so far is to set the fieldset to
false and then wrap to put the put <fieldset> tags around the form.
But there must be a way to do this using FormHelper.


<?php
echo $this->Form->create('Contact', array('action' => 'mail', 'id' =>
'form', 'div' => false));
?>
<fieldset><legend>Contact Form</legend>
<?php
echo $this->Form->inputs(array(
        'fieldset'=>false,
        'name' => array(
        'label' => 'Name:',
        'maxLength' => '25',
        'div' => false,
        'id' => 'name'
    ),
    'Contact.email' => array(
        'label' => 'Email:',
        'maxLength' => '50',
        'div' => false,
        'id' => 'email'
    ),
    'Contact.telephone' => array(
        'label' => 'telephone:',
        'maxLength' => '12',
        'div' => false,
        'id' => 'telephone'
    ),
    'Contact.reason'=>array(
        'label' => 'Reason:',
        'maxLength' => '25',
        'div' => false,
        'id' => 'reason'
    ),
    'Contact.message'=>array(
        'label' => 'Message:',
        'div' => false,
        'id' => 'message'
    ),
));
 echo $this->Form->button('Reset', array('type' =>'reset','id' =>
'reset'));
 echo $this->Form->button('Send', array('id' => 'send'));
?>
</fieldset>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to